--- 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) | - | | [NativeWindow](classes/NativeWindow.md) | A window surface that hosts a NativeScript view tree. | | [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. | | [WindowBase](classes/WindowBase.md) | Cross-platform base for any window surface. | | [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. | | [NativeWindowEventData](interfaces/NativeWindowEventData.md) | Base event data for NativeWindow events. | | [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) | - | | [PrimaryWindowChangedEventData](interfaces/PrimaryWindowChangedEventData.md) | Event data fired on Application when the primary window changes. | | [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. | | [SceneContinueUserActivityEventData](interfaces/SceneContinueUserActivityEventData.md) | iOS event data for the `sceneContinueUserActivity` event, raised for Handoff and universal links directed at a scene. | | [SceneEventData](interfaces/SceneEventData.md) | iOS Event data containing information for scene lifecycle events (iOS 13+). | | [SceneOpenURLContextsEventData](interfaces/SceneOpenURLContextsEventData.md) | iOS event data for the `sceneOpenURLContexts` event, raised when a scene is asked to open URLs. | | [ScenePerformActionForShortcutItemEventData](interfaces/ScenePerformActionForShortcutItemEventData.md) | iOS event data for the `scenePerformActionForShortcutItem` event, raised when a home screen quick action targets a scene. | | [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 | | [WindowBaseEventData](interfaces/WindowBaseEventData.md) | Base event data for window surface events. | | [WindowCloseEventData](interfaces/WindowCloseEventData.md) | Event data fired on Application when a window closes. | | [WindowContentRequest](interfaces/WindowContentRequest.md) | Describes the window asking for content. | | [WindowLayoutDirectionChangedEventData](interfaces/WindowLayoutDirectionChangedEventData.md) | Event data for the `layoutDirectionChanged` event of a NativeWindow. | | [WindowOpenEventData](interfaces/WindowOpenEventData.md) | Event data fired on Application when a window opens. | | [WindowOpenOptions](interfaces/WindowOpenOptions.md) | Options for opening a new window. | | [WindowOrientationChangedEventData](interfaces/WindowOrientationChangedEventData.md) | Event data for the `orientationChanged` event of a NativeWindow. | | [WindowSystemAppearanceChangedEventData](interfaces/WindowSystemAppearanceChangedEventData.md) | Event data for the `systemAppearanceChanged` event of a NativeWindow. | ## 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) | - | | [NativeWindowEventName](type-aliases/NativeWindowEventName.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 | | [WindowContentResolver](type-aliases/WindowContentResolver.md) | Supplies the UI for a window that needs content. Called once per window that needs it. | | [WindowRole](type-aliases/WindowRole.md) | The purpose a window surface serves. | | [WindowState](type-aliases/WindowState.md) | The lifecycle state of a window surface. | ## 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) | - | | [columnGapProperty](variables/columnGapProperty.md) | - | | [cornerShapeProperty](variables/cornerShapeProperty.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) | - | | [maxHeightProperty](variables/maxHeightProperty.md) | - | | [maxLengthProperty](variables/maxLengthProperty.md) | - | | [maxWidthProperty](variables/maxWidthProperty.md) | - | | [minHeightProperty](variables/minHeightProperty.md) | - | | [minWidthProperty](variables/minWidthProperty.md) | - | | [NativeWindowEvents](variables/NativeWindowEvents.md) | Events emitted by a NativeWindow instance. | | [~~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) | - | | [rowGapProperty](variables/rowGapProperty.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) | - | | [WindowEvents](variables/WindowEvents.md) | Application-level events related to window management. | | [zIndexProperty](variables/zIndexProperty.md) | - | ## Functions | Function | Description | | ------ | ------ | | [\_hasPaddingSetNativeOverrides](functions/hasPaddingSetNativeOverrides.md) | Whether a subclass overrides any of the per-side \[padding\*Property.setNative] handlers `coreProto` defines. An override owns padding application - the consolidated paddingInternal write must stand down, or it would apply padding around handlers designed to intercept it. | | [\_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. | | [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:17](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/index.d.ts#L17) --- --- url: >- https://docs.nativescript.org/api/namespaces/AccessibilityEvents/variables/accessibilityFocusChangedEvent.md --- ```ts const accessibilityFocusChangedEvent: "accessibilityFocusChanged"; ``` Defined in: [index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/index.d.ts#L19) --- --- url: >- https://docs.nativescript.org/api/namespaces/AccessibilityEvents/variables/accessibilityFocusEvent.md --- ```ts const accessibilityFocusEvent: "accessibilityFocus"; ``` Defined in: [index.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/index.d.ts#L18) --- --- url: >- https://docs.nativescript.org/api/namespaces/AccessibilityEvents/variables/accessibilityPerformEscapeEvent.md --- ```ts const accessibilityPerformEscapeEvent: "accessibilityPerformEscape"; ``` Defined in: [index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/index.d.ts#L20) --- --- 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) | - | | [CornerShape](namespaces/CornerShape/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) | - | | [CornerShapeType](type-aliases/CornerShapeType.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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/CornerShape.md --- ## Variables | Variable | Description | | ------ | ------ | | [isValid](variables/isValid.md) | - | | [parse](variables/parse.md) | - | | [round](variables/round.md) | - | | [squircle](variables/squircle.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/CornerShape/variables/isValid.md --- ```ts const isValid: (value: any) => value is CornerShapeType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns `value is CornerShapeType` --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/CornerShape/variables/parse.md --- ```ts const parse: (value: any) => CornerShapeType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns [`CornerShapeType`](../../../type-aliases/CornerShapeType.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/CornerShape/variables/round.md --- ```ts const round: CornerShapeType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/CornerShape/variables/squircle.md --- ```ts const squircle: CornerShapeType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/CornerShapeType.md --- ```ts type CornerShapeType = "round" | "squircle"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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 | `${number}dip` | `${number}px` | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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 | `${number}%`; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) | - | | [LAYOUT\_DIRECTION\_CSS\_CLASSES](variables/LAYOUT_DIRECTION_CSS_CLASSES.md) | - | | [MODAL\_ROOT\_VIEW\_CSS\_CLASS](variables/MODAL_ROOT_VIEW_CSS_CLASS.md) | - | | [ORIENTATION\_CSS\_CLASSES](variables/ORIENTATION_CSS_CLASSES.md) | - | | [ROOT\_VIEW\_CSS\_CLASS](variables/ROOT_VIEW_CSS_CLASS.md) | - | | [SYSTEM\_APPEARANCE\_CSS\_CLASSES](variables/SYSTEM_APPEARANCE_CSS_CLASSES.md) | - | | [WINDOW\_SCOPED\_CSS\_CLASSES](variables/WINDOW_SCOPED_CSS_CLASSES.md) | Classes describing the state of a single window. Two windows can legitimately disagree on all of them, so they live on each window's root view (and the modals presented over it) rather than in the process-wide system class list. | ## 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.1.0-core/packages/core/css/system-classes.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/variables/LAYOUT_DIRECTION_CSS_CLASSES.md --- ```ts const LAYOUT_DIRECTION_CSS_CLASSES: string[]; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/css/system-classes.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/variables/ORIENTATION_CSS_CLASSES.md --- ```ts const ORIENTATION_CSS_CLASSES: string[]; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/css/system-classes.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/variables/SYSTEM_APPEARANCE_CSS_CLASSES.md --- ```ts const SYSTEM_APPEARANCE_CSS_CLASSES: string[]; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/css/system-classes.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/variables/WINDOW_SCOPED_CSS_CLASSES.md description: >- Classes describing the state of a single window. Two windows can legitimately disagree on all of them, so they live on each window's root view (and the modal... --- ```ts const WINDOW_SCOPED_CSS_CLASSES: string[]; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/css/system-classes.ts) Classes describing the state of a single window. Two windows can legitimately disagree on all of them, so they live on each window's root view (and the modals presented over it) rather than in the process-wide system class list. --- --- 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) | - | | [hasIOSManagedInsetAncestor](functions/hasIOSManagedInsetAncestor.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:77](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L77) ## 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:78](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L78) #### 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:74](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L74) ## 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:75](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L75) #### 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:80](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L80) ## 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:81](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L81) #### 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:54](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L54) 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:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L59) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L73) ## 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:71](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L71) ## 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:65](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L65) 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:70](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L70) ## Parameters | Parameter | Type | | ------ | ------ | | `frame` | `any` | ## Returns `Position` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/functions/hasIOSManagedInsetAncestor.md --- ```ts function hasIOSManagedInsetAncestor(view: View): boolean; ``` Defined in: [ui/core/view/view-helper/index.d.ts:50](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L50) ## Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](../../../../classes/View.md) | ## Returns `boolean` --- --- 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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L66) ## 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:69](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L69) ## 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:72](https://github.com/NativeScript/NativeScript/blob/9.1.0-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/updateAutoAdjustScrollInsets.md --- ```ts function updateAutoAdjustScrollInsets(controller: any, owner: View): void; ``` Defined in: [ui/core/view/view-helper/index.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.1.0-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/IOSHelper/functions/updateConstraints.md --- ```ts function updateConstraints(controller: any, owner: View): void; ``` Defined in: [ui/core/view/view-helper/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.1.0-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/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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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 | | ------ | ------ | | [PlatformWindow](type-aliases/PlatformWindow.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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/PlatformWindow.md --- ```ts type PlatformWindow = android.view.Window | UIWindow; ``` Defined in: [utils/native-helper.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/accessibility/accessibility-common.ts) | | `None` | `"none"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/accessibility/accessibility-common.ts) | | `Polite` | `"polite"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/accessibility/accessibility-common.ts) | | `Disabled` | `"disabled"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/accessibility/accessibility-common.ts) | | `Selected` | `"selected"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/accessibility/accessibility-common.ts) | | `Unchecked` | `"unchecked"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/file-system/index.d.ts#L4) | | `AUDIOBOOKS` | `number` | [file-system/index.d.ts:5](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L5) | | `DCIM` | `number` | [file-system/index.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L6) | | `DOCUMENTS` | `number` | [file-system/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L7) | | `DOWNLOADS` | `number` | [file-system/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L8) | | `MOVIES` | `number` | [file-system/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L9) | | `MUSIC` | `number` | [file-system/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L10) | | `NOTIFICATIONS` | `number` | [file-system/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L11) | | `PICTURES` | `number` | [file-system/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L12) | | `PODCASTS` | `number` | [file-system/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L13) | | `RINGTONES` | `number` | [file-system/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L14) | | `SCREENSHOTS` | `number` | [file-system/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/styling/background.d.ts#L14) | | `memory` | `number` | [ui/styling/background.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/background.d.ts#L13) | | `none` | `number` | [ui/styling/background.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/accessibility/accessibility-common.ts) | | `ExtraSmall` | `"extra-small"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/accessibility/accessibility-common.ts) | | `Medium` | `"medium"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `touchDown` | `"touchDown"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `touchUp` | `"touchUp"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `cancelled` | `0` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `changed` | `2` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `ended` | `3` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `longPress` | `64` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `pan` | `8` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `pinch` | `4` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `rotation` | `32` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `swipe` | `16` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `tap` | `1` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `touch` | `128` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/http/http-interfaces.ts) | | `UTF8` | `0` | [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `AppearDown` | `"appearDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `AppearUp` | `"appearUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `Bounce` | `"bounce"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `BounceDown` | `"bounceDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `BounceUp` | `"bounceUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `Breathe` | `"breathe"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `BreathePlain` | `"breathePlain"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `BreathePulse` | `"breathePulse"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `Disappear` | `"disappear"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `DisappearDown` | `"disappearDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `DisappearUp` | `"disappearUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `Pulse` | `"pulse"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `Rotate` | `"rotate"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `RotateClockwise` | `"rotateClockwise"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `RotateCounterClockwise` | `"rotateCounterClockwise"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `Scale` | `"scale"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `ScaleDown` | `"scaleDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `ScaleUp` | `"scaleUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `VariableColor` | `"variableColor"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `Wiggle` | `"wiggle"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleBackward` | `"wiggleBackward"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleClockwise` | `"wiggleClockwise"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleCounterClockwise` | `"wiggleCounterClockwise"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleDown` | `"wiggleDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleForward` | `"wiggleForward"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleLeft` | `"wiggleLeft"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleRight` | `"wiggleRight"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleUp` | `"wiggleUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/frame/frame-interfaces.ts) | | `forward` | `1` | [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/frame-interfaces.ts) | | `replace` | `2` | [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/transition/shared-transition.ts) | | `present` | `0` | [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `left` | `2` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `right` | `1` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `up` | `4` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `down` | `"down"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `move` | `"move"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) | | `up` | `"up"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_nativeWindow`](LayoutBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveColumnGap`](LayoutBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxHeight`](LayoutBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxWidth`](LayoutBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveRowGap`](LayoutBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxHeight`](LayoutBase.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxWidth`](LayoutBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`closedModallyEvent`](LayoutBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalHost`](LayoutBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getNativeWindow`](LayoutBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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.1.0-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.1.0-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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveContentInsetLeft ```ts effectiveContentInsetLeft: number; ``` Defined in: [ui/action-bar/index.d.ts:69](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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.1.0-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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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.1.0-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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderTopWidth`](ViewBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveColumnGap`](ViewBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginTop`](ViewBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxHeight`](ViewBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxWidth`](ViewBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMinWidth`](ViewBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveRowGap`](ViewBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### cssType #### Get Signature ```ts get cssType(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the CSS fully qualified type name used for selector matching. ##### Returns `string` #### Set Signature ```ts set cssType(value: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`cssType`](ViewBase.md#csstype) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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.1.0-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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L53) ## Extends * [`ApplicationCommon`](ApplicationCommon.md) ## Properties ### \_windows ```ts protected _windows: NativeWindow[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`_windows`](ApplicationCommon.md#windows) *** ### activityBackPressedEvent ```ts readonly activityBackPressedEvent: "activityBackPressed" = 'activityBackPressed'; ``` Defined in: [application/application.d.ts:74](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L74) *** ### activityCreatedEvent ```ts readonly activityCreatedEvent: "activityCreated" = 'activityCreated'; ``` Defined in: [application/application.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L66) *** ### activityDestroyedEvent ```ts readonly activityDestroyedEvent: "activityDestroyed" = 'activityDestroyed'; ``` Defined in: [application/application.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L67) *** ### activityNewIntentEvent ```ts readonly activityNewIntentEvent: "activityNewIntent" = 'activityNewIntent'; ``` Defined in: [application/application.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L75) *** ### activityPausedEvent ```ts readonly activityPausedEvent: "activityPaused" = 'activityPaused'; ``` Defined in: [application/application.d.ts:69](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L69) *** ### activityRequestPermissionsEvent ```ts readonly activityRequestPermissionsEvent: "activityRequestPermissions" = 'activityRequestPermissions'; ``` Defined in: [application/application.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L76) *** ### activityResultEvent ```ts readonly activityResultEvent: "activityResult" = 'activityResult'; ``` Defined in: [application/application.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L73) *** ### activityResumedEvent ```ts readonly activityResumedEvent: "activityResumed" = 'activityResumed'; ``` Defined in: [application/application.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L70) *** ### activityStartedEvent ```ts readonly activityStartedEvent: "activityStarted" = 'activityStarted'; ``` Defined in: [application/application.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L68) *** ### activityStoppedEvent ```ts readonly activityStoppedEvent: "activityStopped" = 'activityStopped'; ``` Defined in: [application/application.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L71) *** ### backgroundEvent ```ts readonly backgroundEvent: "background" = "background"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) On Android, raised when the last window closes; the process may stay alive. On iOS, raised when the process itself terminates. #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Deprecated Use the 'ready' event for application initialization and Application.setWindowContentResolver() to provide window UI. 'launch' continues to fire before the first window's content is created, and its 'root' property is still honored, for backwards compatibility. It never fires for additional windows. In a scene-based app it fires with the first window's content, so a background launch that connects no scene does not raise it. #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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: AndroidApplicationOn; ``` Defined in: [application/application.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L78) #### Overrides [`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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.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.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`orientationChangedEvent`](ApplicationCommon.md#orientationchangedevent) *** ### primaryWindowChangedEvent ```ts readonly primaryWindowChangedEvent: "primaryWindowChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`primaryWindowChangedEvent`](ApplicationCommon.md#primarywindowchangedevent) *** ### readyEvent ```ts readonly readyEvent: "ready" = "ready"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Raised once per JS context, as soon as the context is initialized. It is never deferred, so it also fires on a background launch where no window is created. Guaranteed ordering: `ready` -> `windowOpen` -> raw connect/create events -> content resolution (the legacy `launch` bridge runs here, for the first window only) -> `contentLoaded` -> `activate`/`displayed`. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`readyEvent`](ApplicationCommon.md#readyevent) *** ### resumeEvent ```ts readonly resumeEvent: "resume" = "resume"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`resumeEvent`](ApplicationCommon.md#resumeevent) *** ### saveActivityStateEvent ```ts readonly saveActivityStateEvent: "saveActivityState" = 'saveActivityState'; ``` Defined in: [application/application.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L72) *** ### started ```ts started: boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/application/application-common.ts) Reflects whole-app state: with multiple windows it is raised once the app itself is no longer in the foreground, not when an individual window backgrounds. Listen on a NativeWindow for per-window state. #### 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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`uncaughtErrorEvent`](ApplicationCommon.md#uncaughterrorevent) *** ### windowCloseEvent ```ts readonly windowCloseEvent: "windowClose"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`windowCloseEvent`](ApplicationCommon.md#windowcloseevent) *** ### windowOpenEvent ```ts readonly windowOpenEvent: "windowOpen"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`windowOpenEvent`](ApplicationCommon.md#windowopenevent) *** ### activityBackPressedEvent ```ts readonly static activityBackPressedEvent: "activityBackPressed" = 'activityBackPressed'; ``` Defined in: [application/application.d.ts:62](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L62) *** ### activityCreatedEvent ```ts readonly static activityCreatedEvent: "activityCreated" = 'activityCreated'; ``` Defined in: [application/application.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L54) *** ### activityDestroyedEvent ```ts readonly static activityDestroyedEvent: "activityDestroyed" = 'activityDestroyed'; ``` Defined in: [application/application.d.ts:55](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L55) *** ### activityNewIntentEvent ```ts readonly static activityNewIntentEvent: "activityNewIntent" = 'activityNewIntent'; ``` Defined in: [application/application.d.ts:63](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L63) *** ### activityPausedEvent ```ts readonly static activityPausedEvent: "activityPaused" = 'activityPaused'; ``` Defined in: [application/application.d.ts:57](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L57) *** ### activityRequestPermissionsEvent ```ts readonly static activityRequestPermissionsEvent: "activityRequestPermissions" = 'activityRequestPermissions'; ``` Defined in: [application/application.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L64) *** ### activityResultEvent ```ts readonly static activityResultEvent: "activityResult" = 'activityResult'; ``` Defined in: [application/application.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L61) *** ### activityResumedEvent ```ts readonly static activityResumedEvent: "activityResumed" = 'activityResumed'; ``` Defined in: [application/application.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L58) *** ### activityStartedEvent ```ts readonly static activityStartedEvent: "activityStarted" = 'activityStarted'; ``` Defined in: [application/application.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L56) *** ### activityStoppedEvent ```ts readonly static activityStoppedEvent: "activityStopped" = 'activityStopped'; ``` Defined in: [application/application.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L59) *** ### ~~hasListeners~~ ```ts static hasListeners: (eventName: string) => boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L60) ## Accessors ### activeWindow #### Get Signature ```ts get activeWindow(): NativeWindow; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the NativeWindow the user is currently interacting with - the one that activated most recently and is still attached. Falls back to the primary window while no window holds activation, which is the case before the first window activates and on a platform that never raises `activate`. ##### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`activeWindow`](ApplicationCommon.md#activewindow) *** ### android #### Get Signature ```ts get android(): AndroidApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/application/application-common.ts) ##### Returns `AndroidApplication` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`AndroidApplication`](ApplicationCommon.md#androidapplication) *** ### autoSystemAppearanceChanged #### Get Signature ```ts get autoSystemAppearanceChanged(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Boolean to enable/disable systemAppearanceChanged ##### Returns `boolean` #### Set Signature ```ts set autoSystemAppearanceChanged(value: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | ##### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`autoSystemAppearanceChanged`](ApplicationCommon.md#autosystemappearancechanged) *** ### backgrounded #### Get Signature ```ts get backgrounded(): boolean; ``` Defined in: [application/application.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L117) ##### Deprecated Use `Application.inBackground` instead. ##### Returns `boolean` *** ### context #### Get Signature ```ts get context(): Context; ``` Defined in: [application/application.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L112) ##### Deprecated Use `Utils.android.getApplicationContext()` instead. ##### Returns `Context` *** ### foregroundActivity #### Get Signature ```ts get foregroundActivity(): AppCompatActivity; ``` Defined in: [application/application.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L107) 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.1.0-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.1.0-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.1.0-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:90](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L90) 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:95](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L95) ##### Deprecated Use `Utils.android.getPackageName()` instead. ##### Returns `string` *** ### paused #### Get Signature ```ts get paused(): boolean; ``` Defined in: [application/application.d.ts:122](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L122) ##### Deprecated Use `Application.suspended` instead. ##### Returns `boolean` *** ### primaryWindow #### Get Signature ```ts get primaryWindow(): NativeWindow; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the primary NativeWindow. ##### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`primaryWindow`](ApplicationCommon.md#primarywindow) *** ### startActivity #### Get Signature ```ts get startActivity(): AppCompatActivity; ``` Defined in: [application/application.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L100) 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.1.0-core/packages/core/application/application-common.ts) ##### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`suspended`](ApplicationCommon.md#suspended) ## Methods ### \_onPrimaryWindowPromoted() ```ts protected _onPrimaryWindowPromoted(nativeWindow: NativeWindow): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Hook for platform-specific bookkeeping right after a window takes over the primary role, before `primaryWindowChanged` is raised. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeWindow` | [`NativeWindow`](NativeWindow.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`_onPrimaryWindowPromoted`](ApplicationCommon.md#onprimarywindowpromoted) *** ### \_onWindowRegistered() ```ts protected _onWindowRegistered(nativeWindow: NativeWindow): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Hook for platform-specific bookkeeping right after a window joins the registry, before `windowOpen` is raised. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeWindow` | [`NativeWindow`](NativeWindow.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`_onWindowRegistered`](ApplicationCommon.md#onwindowregistered) *** ### addCss() ```ts addCss(cssText: string, attributeScoped?: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:80](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L80) #### 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.1.0-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): any; ``` Defined in: [application/application.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L146) 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 `any` #### Deprecated Use `getRegisteredBroadcastReceivers` instead. *** ### getRegisteredBroadcastReceivers() ```ts getRegisteredBroadcastReceivers(intentFilter: string): BroadcastReceiver[]; ``` Defined in: [application/application.d.ts:151](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L151) 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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getSystemAppearance`](ApplicationCommon.md#getsystemappearance) *** ### getWindowById() ```ts getWindowById(id: string): NativeWindow; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get a registered NativeWindow by its id. #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindowById`](ApplicationCommon.md#getwindowbyid) *** ### getWindowContentResolver() ```ts getWindowContentResolver(): WindowContentResolver; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns [`WindowContentResolver`](../type-aliases/WindowContentResolver.md) The callback currently supplying window content, if any. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindowContentResolver`](ApplicationCommon.md#getwindowcontentresolver) *** ### getWindows() #### Call Signature ```ts getWindows(role: "all"): WindowBase[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the active windows, filtered by role. Defaults to the view-carrying app windows (`application` and `embedded`). Pass `'all'` to include every registered surface, including ones that carry no view tree. ##### Parameters | Parameter | Type | | ------ | ------ | | `role` | `"all"` | ##### Returns [`WindowBase`](WindowBase.md)\[] ##### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindows`](ApplicationCommon.md#getwindows) #### Call Signature ```ts getWindows(role?: | WindowRole | WindowRole[]): NativeWindow[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the active windows, filtered by role. Defaults to the view-carrying app windows (`application` and `embedded`). Pass `'all'` to include every registered surface, including ones that carry no view tree. ##### Parameters | Parameter | Type | | ------ | ------ | | `role?` | | [`WindowRole`](../type-aliases/WindowRole.md) | [`WindowRole`](../type-aliases/WindowRole.md)\[] | ##### Returns [`NativeWindow`](NativeWindow.md)\[] ##### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindows`](ApplicationCommon.md#getwindows) #### Call Signature ```ts getWindows(role?: | "all" | WindowRole | WindowRole[]): WindowBase[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the active windows, filtered by role. Defaults to the view-carrying app windows (`application` and `embedded`). Pass `'all'` to include every registered surface, including ones that carry no view tree. ##### Parameters | Parameter | Type | | ------ | ------ | | `role?` | | `"all"` | [`WindowRole`](../type-aliases/WindowRole.md) | [`WindowRole`](../type-aliases/WindowRole.md)\[] | ##### Returns [`WindowBase`](WindowBase.md)\[] ##### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindows`](ApplicationCommon.md#getwindows) *** ### hasLaunched() ```ts hasLaunched(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`hasLaunched`](ApplicationCommon.md#haslaunched) *** ### initRootView() ```ts initRootView(rootView: View, window?: NativeWindow): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | - | | `window?` | [`NativeWindow`](NativeWindow.md) | the window the root view belongs to. Supplies the window-scoped CSS classes; without it they come from the primary window. | #### 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.1.0-core/packages/core/application/application-common.ts) #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) #### Deprecated Use Application.primaryWindow?.layoutDirection() - or the NativeWindow of the relevant view - instead. Continues to reflect the primary window. #### 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.1.0-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.1.0-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.1.0-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(options?: WindowOpenOptions): void; ``` Defined in: [application/application.d.ts:172](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L172) **`Experimental`** Opens a new window by launching the start activity into its own task. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | [`WindowOpenOptions`](../interfaces/WindowOpenOptions.md) | Options for the new window. `options.data` is put on the launch intent as extras and surfaces as the window's `data`. The start activity's `launchMode` in AndroidManifest.xml decides whether a second instance can exist at all: `singleTask` (the app template default) and `singleInstance` route the intent to the existing activity's `onNewIntent` instead of creating one. Use `singleInstancePerTask` (API 31+) to keep single-task behavior for launcher and deep-link starts while allowing additional windows, or `standard`. When the app is already in split-screen, the new window opens in the adjacent pane; otherwise it covers the current one and both show in recents. | #### Returns `void` #### Overrides [`ApplicationCommon`](ApplicationCommon.md).[`openWindow`](ApplicationCommon.md#openwindow) *** ### ~~orientation()~~ ```ts orientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` #### Deprecated Use Application.primaryWindow?.orientation() - or the NativeWindow of the relevant view - instead. Continues to reflect the primary window. #### 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.1.0-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, flags?: number): () => void; ``` Defined in: [application/application.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L132) 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. | | `flags?` | `number` | Any combination of `RECEIVER_VISIBLE_TO_INSTANT_APPS` (1), `RECEIVER_EXPORTED` (2) and `RECEIVER_NOT_EXPORTED` (4). Defaults to `RECEIVER_EXPORTED`. Only honored from API 26 onwards. | #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setSystemAppearance`](ApplicationCommon.md#setsystemappearance) *** ### setWindowContentResolver() ```ts setWindowContentResolver(resolver: WindowContentResolver): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Sets the callback that supplies the UI for windows that need content. Pass `null` to remove a previously set resolver. #### Parameters | Parameter | Type | | ------ | ------ | | `resolver` | [`WindowContentResolver`](../type-aliases/WindowContentResolver.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setWindowContentResolver`](ApplicationCommon.md#setwindowcontentresolver) *** ### ~~systemAppearance()~~ ```ts systemAppearance(): "dark" | "light"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` #### Deprecated Use Application.primaryWindow?.systemAppearance() - or the NativeWindow of the relevant view - instead. Continues to reflect the primary window. #### 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.1.0-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:139](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L139) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) ## Extended by * [`AndroidApplication`](AndroidApplication.md) * [`iOSApplication`](iOSApplication.md) ## Properties ### \_windows ```ts protected _windows: NativeWindow[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) *** ### backgroundEvent ```ts readonly backgroundEvent: "background" = "background"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) On Android, raised when the last window closes; the process may stay alive. On iOS, raised when the process itself terminates. *** ### fontScaleChangedEvent ```ts readonly fontScaleChangedEvent: "fontScaleChanged" = "fontScaleChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Deprecated Use the 'ready' event for application initialization and Application.setWindowContentResolver() to provide window UI. 'launch' continues to fire before the first window's content is created, and its 'root' property is still honored, for backwards compatibility. It never fires for additional windows. In a scene-based app it fires with the first window's content, so a background launch that connects no scene does not raise it. *** ### layoutDirectionChangedEvent ```ts readonly layoutDirectionChangedEvent: "layoutDirectionChanged" = "layoutDirectionChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.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.1.0-core/packages/core/application/application-common.ts) *** ### primaryWindowChangedEvent ```ts readonly primaryWindowChangedEvent: "primaryWindowChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) *** ### readyEvent ```ts readonly readyEvent: "ready" = "ready"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Raised once per JS context, as soon as the context is initialized. It is never deferred, so it also fires on a background launch where no window is created. Guaranteed ordering: `ready` -> `windowOpen` -> raw connect/create events -> content resolution (the legacy `launch` bridge runs here, for the first window only) -> `contentLoaded` -> `activate`/`displayed`. *** ### resumeEvent ```ts readonly resumeEvent: "resume" = "resume"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) *** ### started ```ts started: boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/application/application-common.ts) Reflects whole-app state: with multiple windows it is raised once the app itself is no longer in the foreground, not when an individual window backgrounds. Listen on a NativeWindow for per-window state. *** ### systemAppearanceChangedEvent ```ts readonly systemAppearanceChangedEvent: "systemAppearanceChanged" = "systemAppearanceChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/application/application-common.ts) *** ### windowCloseEvent ```ts readonly windowCloseEvent: "windowClose"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) *** ### windowOpenEvent ```ts readonly windowOpenEvent: "windowOpen"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Deprecated Use `Application.android.once()` instead. ## Accessors ### activeWindow #### Get Signature ```ts get activeWindow(): NativeWindow; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the NativeWindow the user is currently interacting with - the one that activated most recently and is still attached. Falls back to the primary window while no window holds activation, which is the case before the first window activates and on a platform that never raises `activate`. ##### Returns [`NativeWindow`](NativeWindow.md) *** ### android #### Get Signature ```ts get android(): AndroidApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/application/application-common.ts) ##### Returns [`AndroidApplication`](AndroidApplication.md) *** ### autoSystemAppearanceChanged #### Get Signature ```ts get autoSystemAppearanceChanged(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Boolean to enable/disable systemAppearanceChanged ##### Returns `boolean` #### Set Signature ```ts set autoSystemAppearanceChanged(value: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | ##### Returns `void` *** ### inBackground #### Get Signature ```ts get inBackground(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) ##### Returns [`iOSApplication`](iOSApplication.md) *** ### primaryWindow #### Get Signature ```ts get primaryWindow(): NativeWindow; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the primary NativeWindow. ##### Returns [`NativeWindow`](NativeWindow.md) *** ### suspended #### Get Signature ```ts get suspended(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) ##### Returns `boolean` ## Methods ### \_onPrimaryWindowPromoted() ```ts protected _onPrimaryWindowPromoted(nativeWindow: NativeWindow): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Hook for platform-specific bookkeeping right after a window takes over the primary role, before `primaryWindowChanged` is raised. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeWindow` | [`NativeWindow`](NativeWindow.md) | #### Returns `void` *** ### \_onWindowRegistered() ```ts protected _onWindowRegistered(nativeWindow: NativeWindow): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Hook for platform-specific bookkeeping right after a window joins the registry, before `windowOpen` is raised. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeWindow` | [`NativeWindow`](NativeWindow.md) | #### Returns `void` *** ### addCss() ```ts addCss(cssText: string, attributeScoped?: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` *** ### getWindowById() ```ts getWindowById(id: string): NativeWindow; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get a registered NativeWindow by its id. #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns [`NativeWindow`](NativeWindow.md) *** ### getWindowContentResolver() ```ts getWindowContentResolver(): WindowContentResolver; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns [`WindowContentResolver`](../type-aliases/WindowContentResolver.md) The callback currently supplying window content, if any. *** ### getWindows() #### Call Signature ```ts getWindows(role: "all"): WindowBase[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the active windows, filtered by role. Defaults to the view-carrying app windows (`application` and `embedded`). Pass `'all'` to include every registered surface, including ones that carry no view tree. ##### Parameters | Parameter | Type | | ------ | ------ | | `role` | `"all"` | ##### Returns [`WindowBase`](WindowBase.md)\[] #### Call Signature ```ts getWindows(role?: | WindowRole | WindowRole[]): NativeWindow[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the active windows, filtered by role. Defaults to the view-carrying app windows (`application` and `embedded`). Pass `'all'` to include every registered surface, including ones that carry no view tree. ##### Parameters | Parameter | Type | | ------ | ------ | | `role?` | | [`WindowRole`](../type-aliases/WindowRole.md) | [`WindowRole`](../type-aliases/WindowRole.md)\[] | ##### Returns [`NativeWindow`](NativeWindow.md)\[] #### Call Signature ```ts getWindows(role?: | "all" | WindowRole | WindowRole[]): WindowBase[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the active windows, filtered by role. Defaults to the view-carrying app windows (`application` and `embedded`). Pass `'all'` to include every registered surface, including ones that carry no view tree. ##### Parameters | Parameter | Type | | ------ | ------ | | `role?` | | `"all"` | [`WindowRole`](../type-aliases/WindowRole.md) | [`WindowRole`](../type-aliases/WindowRole.md)\[] | ##### Returns [`WindowBase`](WindowBase.md)\[] *** ### hasLaunched() ```ts hasLaunched(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns `boolean` *** ### initRootView() ```ts initRootView(rootView: View, window?: NativeWindow): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | - | | `window?` | [`NativeWindow`](NativeWindow.md) | the window the root view belongs to. Supplies the window-scoped CSS classes; without it they come from the primary window. | #### Returns `void` *** ### ~~layoutDirection()~~ ```ts layoutDirection(): LayoutDirectionType; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) #### Deprecated Use Application.primaryWindow?.layoutDirection() - or the NativeWindow of the relevant view - instead. Continues to reflect the primary window. *** ### layoutDirectionChanged() ```ts layoutDirectionChanged(rootView: View, newLayoutDirection: LayoutDirectionType): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `additionalLanchEventData?` | `any` | #### Returns [`View`](View.md) *** ### openWindow() ```ts openWindow(options?: WindowOpenOptions): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Opens a new window. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | [`WindowOpenOptions`](../interfaces/WindowOpenOptions.md) | Options for the new window, including data to hand to it. | #### Returns `void` *** ### ~~orientation()~~ ```ts orientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` #### Deprecated Use Application.primaryWindow?.orientation() - or the NativeWindow of the relevant view - instead. Continues to reflect the primary window. *** ### orientationChanged() ```ts orientationChanged(rootView: View, newOrientation: "portrait" | "landscape" | "unknown"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` *** ### setWindowContentResolver() ```ts setWindowContentResolver(resolver: WindowContentResolver): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Sets the callback that supplies the UI for windows that need content. Pass `null` to remove a previously set resolver. #### Parameters | Parameter | Type | | ------ | ------ | | `resolver` | [`WindowContentResolver`](../type-aliases/WindowContentResolver.md) | #### Returns `void` *** ### ~~systemAppearance()~~ ```ts systemAppearance(): "dark" | "light"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` #### Deprecated Use Application.primaryWindow?.systemAppearance() - or the NativeWindow of the relevant view - instead. Continues to reflect the primary window. *** ### systemAppearanceChanged() ```ts systemAppearanceChanged(rootView: View, newSystemAppearance: "dark" | "light"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/styling/background-common.ts) *** ### cornerShape ```ts cornerShape: CornerShapeType; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`Color`](Color.md) | #### Returns `Background` *** ### withCornerShape() ```ts withCornerShape(value: CornerShapeType): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`CornerShapeType`](../namespaces/CoreTypes/type-aliases/CornerShapeType.md) | #### Returns `Background` *** ### withImage() ```ts withImage(value: string | LinearGradient): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isStyleScopeHost`](TextBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`TextBase`](TextBase.md).[`_nativeWindow`](TextBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityIgnoresInvertColors`](TextBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`automationText`](TextBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`TextBase`](TextBase.md).[`cssClasses`](TextBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`TextBase`](TextBase.md).[`cssPseudoClasses`](TextBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderTopWidth`](TextBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveColumnGap`](TextBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginTop`](TextBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMaxHeight`](TextBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMaxWidth`](TextBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMinWidth`](TextBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveRowGap`](TextBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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.1.0-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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginTop`](TextBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`maxHeight`](TextBase.md#maxheight) *** ### maxLines ```ts maxLines: number; ``` Defined in: [ui/text-base/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`maxWidth`](TextBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`minWidth`](TextBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`touchAnimation`](TextBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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.1.0-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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`TextBase`](TextBase.md).[`androidOverflowInsetEvent`](TextBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`TextBase`](TextBase.md).[`closedModallyEvent`](TextBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`_getNativeViewsCount`](TextBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`TextBase`](TextBase.md).[`_getRootModalHost`](TextBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredState`](TextBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredWidth`](TextBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`TextBase`](TextBase.md).[`getNativeWindow`](TextBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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.1.0-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.1.0-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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1181](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1181) 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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isStyleScopeHost`](CustomLayoutView.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_nativeWindow`](CustomLayoutView.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityIgnoresInvertColors`](CustomLayoutView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`automationText`](CustomLayoutView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssClasses`](CustomLayoutView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssPseudoClasses`](CustomLayoutView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderTopWidth`](CustomLayoutView.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveColumnGap`](CustomLayoutView.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginTop`](CustomLayoutView.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMaxHeight`](CustomLayoutView.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMaxWidth`](CustomLayoutView.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMinWidth`](CustomLayoutView.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveRowGap`](CustomLayoutView.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ignoreTouchAnimation`](CustomLayoutView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginTop`](CustomLayoutView.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`maxHeight`](CustomLayoutView.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`maxWidth`](CustomLayoutView.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`minWidth`](CustomLayoutView.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`touchAnimation`](CustomLayoutView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidOverflowInsetEvent`](CustomLayoutView.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`closedModallyEvent`](CustomLayoutView.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getNativeViewsCount`](CustomLayoutView.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getRootModalHost`](CustomLayoutView.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredState`](CustomLayoutView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredWidth`](CustomLayoutView.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getNativeWindow`](CustomLayoutView.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1193](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1193) 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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_isStyleScopeHost`](ContainerView.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`ContainerView`](ContainerView.md).[`_nativeWindow`](ContainerView.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityIgnoresInvertColors`](ContainerView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`automationText`](ContainerView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`ContainerView`](ContainerView.md).[`cssClasses`](ContainerView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`ContainerView`](ContainerView.md).[`cssPseudoClasses`](ContainerView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveBorderTopWidth`](ContainerView.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveColumnGap`](ContainerView.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMarginTop`](ContainerView.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMaxHeight`](ContainerView.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMaxWidth`](ContainerView.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMinWidth`](ContainerView.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveRowGap`](ContainerView.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`ignoreTouchAnimation`](ContainerView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`marginTop`](ContainerView.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`maxHeight`](ContainerView.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`maxWidth`](ContainerView.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`minWidth`](ContainerView.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`touchAnimation`](ContainerView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`ContainerView`](ContainerView.md).[`androidOverflowInsetEvent`](ContainerView.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`ContainerView`](ContainerView.md).[`closedModallyEvent`](ContainerView.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`_getNativeViewsCount`](ContainerView.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`ContainerView`](ContainerView.md).[`_getRootModalHost`](ContainerView.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`getMeasuredState`](ContainerView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`getMeasuredWidth`](ContainerView.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`ContainerView`](ContainerView.md).[`getNativeWindow`](ContainerView.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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.1.0-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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) 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.1.0-core/packages/core/ui/date-picker/index.d.ts#L68) Gets or sets the max date. #### Ns Property *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minDate ```ts minDate: Date; ``` Defined in: [ui/date-picker/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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.1.0-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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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.1.0-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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_nativeWindow`](LayoutBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveColumnGap`](LayoutBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxHeight`](LayoutBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxWidth`](LayoutBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveRowGap`](LayoutBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxHeight`](LayoutBase.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxWidth`](LayoutBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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.1.0-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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`closedModallyEvent`](LayoutBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalHost`](LayoutBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getNativeWindow`](LayoutBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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.1.0-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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isStyleScopeHost`](TextBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`TextBase`](TextBase.md).[`_nativeWindow`](TextBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityIgnoresInvertColors`](TextBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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.1.0-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.1.0-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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`automationText`](TextBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`TextBase`](TextBase.md).[`cssClasses`](TextBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`TextBase`](TextBase.md).[`cssPseudoClasses`](TextBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderTopWidth`](TextBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveColumnGap`](TextBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginTop`](TextBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMaxHeight`](TextBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMaxWidth`](TextBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMinWidth`](TextBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveRowGap`](TextBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`ignoreTouchAnimation`](TextBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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.1.0-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.1.0-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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginTop`](TextBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`maxHeight`](TextBase.md#maxheight) *** ### maxLength ```ts maxLength: number; ``` Defined in: [ui/editable-text-base/index.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`maxWidth`](TextBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`minWidth`](TextBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`touchAnimation`](TextBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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.1.0-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.1.0-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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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.1.0-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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) 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.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L19) String value used when hooking to the blur event. #### Ns Event blurEvent *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`TextBase`](TextBase.md).[`closedModallyEvent`](TextBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`_getNativeViewsCount`](TextBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`TextBase`](TextBase.md).[`_getRootModalHost`](TextBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredState`](TextBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredWidth`](TextBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`TextBase`](TextBase.md).[`getNativeWindow`](TextBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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:40](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L40) #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/transition/index.d.ts#L31) #### Inherited from [`Transition`](Transition.md).[`presenting`](Transition.md#presenting) *** ### sharedElements? ```ts optional sharedElements?: { _allPresentingViews?: View[]; independent?: SharedElementSettings & { isPresented?: boolean; }[]; presented?: SharedElementSettings[]; presenting?: SharedElementSettings[]; }; ``` Defined in: [ui/transition/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L32) #### \_allPresentingViews? ```ts optional _allPresentingViews?: View[]; ``` #### 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.1.0-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:39](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L39) #### 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:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L59) #### 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:44](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L44) #### 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:45](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L45) #### 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:43](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L43) #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`getCurve`](Transition.md#getcurve) *** ### getDuration() ```ts getDuration(): number; ``` Defined in: [ui/transition/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L41) #### 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:49](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L49) #### 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:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L53) #### 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:55](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L55) #### 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:57](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L57) #### 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:51](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L51) #### 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:42](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L42) #### 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:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L47) #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_nativeWindow`](LayoutBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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) *** ### columnGap ```ts columnGap: LengthType; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:88](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L88) Gets or sets the gap between columns #### Ns Property *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveColumnGap`](LayoutBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxHeight`](LayoutBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxWidth`](LayoutBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveRowGap`](LayoutBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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.1.0-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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### gap ```ts gap: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L76) Gets or sets the gaps between rows and columns #### Ns Property *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxHeight`](LayoutBase.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxWidth`](LayoutBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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) *** ### rowGap ```ts rowGap: LengthType; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L82) Gets or sets the gap between rows #### Ns Property *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`closedModallyEvent`](LayoutBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalHost`](LayoutBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getNativeWindow`](LayoutBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:100](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L100) #### 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:94](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L94) #### 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:97](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L97) #### 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L103) #### 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:91](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L91) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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:99](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L99) #### 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:93](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L93) #### 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L96) #### 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:102](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L102) #### 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:90](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L90) #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderTopWidth`](ViewBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveColumnGap`](ViewBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginTop`](ViewBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxHeight`](ViewBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxWidth`](ViewBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMinWidth`](ViewBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveRowGap`](ViewBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### cssType #### Get Signature ```ts get cssType(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the CSS fully qualified type name used for selector matching. ##### Returns `string` #### Set Signature ```ts set cssType(value: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`cssType`](ViewBase.md#csstype) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:17](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L17) 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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._isStyleScopeHost ``` *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from ```ts FrameBase._nativeWindow ``` *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from ```ts FrameBase.accessibilityIgnoresInvertColors ``` *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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:126](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L126) 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.1.0-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:170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L170) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L149) 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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from ```ts FrameBase.automationText ``` *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:132](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L132) Gets the back stack of this instance. #### Overrides ```ts FrameBase.backStack ``` *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from ```ts FrameBase.cssClasses ``` *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from ```ts FrameBase.cssPseudoClasses ``` *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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:143](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L143) 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:137](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L137) 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:43](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L43) #### Ns Property *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveBorderTopWidth ``` *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveColumnGap ``` *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMarginTop ``` *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMaxHeight ``` *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMaxWidth ``` *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMinWidth ``` *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveRowGap ``` *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from ```ts FrameBase.ignoreTouchAnimation ``` *** ### ios ```ts ios: iOSFrame; ``` Defined in: [ui/frame/index.d.ts:175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L175) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:182](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L182) Specify a custom UINavigationBar class (iOS only) #### Ns Property *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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:188](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L188) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from ```ts FrameBase.marginTop ``` *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from ```ts FrameBase.maxHeight ``` *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from ```ts FrameBase.maxWidth ``` *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from ```ts FrameBase.minWidth ``` *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from ```ts FrameBase.touchAnimation ``` *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### Ns Property #### Inherited from ```ts FrameBase.touchDelay ``` *** ### transition ```ts transition: NavigationTransition; ``` Defined in: [ui/frame/index.d.ts:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L155) 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) visionOS only #### Ns Property #### Inherited from ```ts FrameBase.visionHoverStyle ``` *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) visionOS only #### Ns Property #### Inherited from ```ts FrameBase.visionIgnoreHoverStyle ``` *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:23](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L23) String value used when hooking to OptionSelected event. #### Ns Event optionSelected *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from ```ts FrameBase.androidOverflowInsetEvent ``` *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from ```ts FrameBase.closedModallyEvent ``` *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:160](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L160) 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:165](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L165) 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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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:37](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L37) 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:30](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L30) 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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from ```ts FrameBase._getNativeViewsCount ``` *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from ```ts FrameBase._getRootModalHost ``` *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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.1.0-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.1.0-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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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:94](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L94) 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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) Returns the raw height component. #### Returns `number` #### Inherited from ```ts FrameBase.getMeasuredHeight ``` *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from ```ts FrameBase.getMeasuredState ``` *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from ```ts FrameBase.getMeasuredWidth ``` *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from ```ts FrameBase.getNativeWindow ``` *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L89) 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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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:104](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L104) 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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L110) 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:119](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L119) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:297](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L297) 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:302](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L302) 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:307](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L307) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L53) Gets a frame by id. #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `Frame` #### Overrides ```ts FrameBase.getFrameById ``` *** ### goBack() ```ts static goBack(frame?: Frame): any; ``` Defined in: [ui/frame/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L73) Navigates back using the navigation hierarchy (if any). Updates the Frame stack as needed. This method will start from the given Frame and will recursively search its ancestors for an instance that has the canGoBack operation available. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `frame?` | `Frame` | The Frame to navigate back. Defaults to the topmost Frame; pass one to scope the back navigation to that Frame's hierarchy. | #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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(window?: WindowBase): Frame; ``` Defined in: [ui/frame/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L66) Gets the topmost frame of a window. An application will typically has one frame instance. Multiple frames handle nested (hierarchical) navigation scenarios. The frame highest in the navigation stack wins outright while it belongs to no window - `navigate()` puts a frame in the stack before it is attached to one, and scoping cannot place such a frame. Otherwise the frame highest in the stack that belongs to the resolved window is returned, falling back to the frame highest in the stack regardless of window when that window hosts none. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `window?` | [`WindowBase`](WindowBase.md) | The window to scope the lookup to. Defaults to `Application.activeWindow`. | #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_nativeWindow`](LayoutBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveColumnGap`](LayoutBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxHeight`](LayoutBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxWidth`](LayoutBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveRowGap`](LayoutBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxHeight`](LayoutBase.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxWidth`](LayoutBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`closedModallyEvent`](LayoutBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalHost`](LayoutBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getNativeWindow`](LayoutBase.md#getnativewindow) *** ### getRows() ```ts getRows(): ItemSpec[]; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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.1.0-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.1.0-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.1.0-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.1.0-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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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.1.0-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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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.1.0-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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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.1.0-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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L175) ## Extends * [`ApplicationCommon`](ApplicationCommon.md) ## Properties ### \_windows ```ts protected _windows: NativeWindow[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`_windows`](ApplicationCommon.md#windows) *** ### backgroundEvent ```ts readonly backgroundEvent: "background" = "background"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) On Android, raised when the last window closes; the process may stay alive. On iOS, raised when the process itself terminates. #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Deprecated Use the 'ready' event for application initialization and Application.setWindowContentResolver() to provide window UI. 'launch' continues to fire before the first window's content is created, and its 'root' property is still honored, for backwards compatibility. It never fires for additional windows. In a scene-based app it fires with the first window's content, so a background launch that connects no scene does not raise it. #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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: IOSApplicationOn; ``` Defined in: [application/application.d.ts:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L176) #### Overrides [`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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`once`](ApplicationCommon.md#once) *** ### onSceneConfiguration ```ts onSceneConfiguration: (application: UIApplication, connectingSceneSession: UISceneSession, options: UISceneConnectionOptions) => any; ``` Defined in: [application/application.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L358) Register a callback to intercept scene configuration. Called for every new scene session. Return a `UISceneConfiguration` to handle the scene yourself (e.g. CarPlay, external display), or return `null`/`undefined` to let NativeScript handle it with the default SceneDelegate. NativeScript only auto-manages `UIWindowSceneSessionRoleApplication` scenes. All other scene roles are ignored unless you provide a configuration here. #### Parameters | Parameter | Type | | ------ | ------ | | `application` | `UIApplication` | | `connectingSceneSession` | `UISceneSession` | | `options` | `UISceneConnectionOptions` | #### Returns `any` #### Example ```ts Application.ios.onSceneConfiguration = (app, session, options) => { if (session.role === CPTemplateApplicationSceneSessionRoleApplication) { const config = UISceneConfiguration.configurationWithNameSessionRole('CarPlay', session.role); config.delegateClass = MyCarPlaySceneDelegate; return config; } return null; }; ``` *** ### orientationChangedEvent ```ts readonly orientationChangedEvent: "orientationChanged" = "orientationChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`orientationChangedEvent`](ApplicationCommon.md#orientationchangedevent) *** ### primaryWindowChangedEvent ```ts readonly primaryWindowChangedEvent: "primaryWindowChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`primaryWindowChangedEvent`](ApplicationCommon.md#primarywindowchangedevent) *** ### readyEvent ```ts readonly readyEvent: "ready" = "ready"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Raised once per JS context, as soon as the context is initialized. It is never deferred, so it also fires on a background launch where no window is created. Guaranteed ordering: `ready` -> `windowOpen` -> raw connect/create events -> content resolution (the legacy `launch` bridge runs here, for the first window only) -> `contentLoaded` -> `activate`/`displayed`. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`readyEvent`](ApplicationCommon.md#readyevent) *** ### resumeEvent ```ts readonly resumeEvent: "resume" = "resume"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:334](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L334) 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:370](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L370) Delays the 'launch' event, and with it the creation of the first window's content, until the app first becomes active, instead of raising it while the app finishes launching. Applies to non-scene apps only. It has no effect in a scene-based app, where each window's content is resolved as its scene connects. #### Deprecated Use the 'ready' event for application initialization, and Application.setWindowContentResolver() to provide window UI. *** ### started ```ts started: boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/application/application-common.ts) Reflects whole-app state: with multiple windows it is raised once the app itself is no longer in the foreground, not when an individual window backgrounds. Listen on a NativeWindow for per-window state. #### 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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`uncaughtErrorEvent`](ApplicationCommon.md#uncaughterrorevent) *** ### windowCloseEvent ```ts readonly windowCloseEvent: "windowClose"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`windowCloseEvent`](ApplicationCommon.md#windowcloseevent) *** ### windowOpenEvent ```ts readonly windowOpenEvent: "windowOpen"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`windowOpenEvent`](ApplicationCommon.md#windowopenevent) *** ### ~~hasListeners~~ ```ts static hasListeners: (eventName: string) => boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.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: "ready", callback: (args: ApplicationEventData) => 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; (event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; (event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; (event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; (event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; (event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; (event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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: "ready", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised once the JS context is initialized. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"ready"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.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. On Android it is raised when the last window closes; the process may stay alive. On iOS it is raised when the process itself terminates. ##### 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` #### Call Signature ```ts ( event: "windowOpen", callback: (args: WindowOpenEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowOpen"` | | `callback` | (`args`: [`WindowOpenEventData`](../interfaces/WindowOpenEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "windowClose", callback: (args: WindowCloseEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"windowClose"` | | `callback` | (`args`: [`WindowCloseEventData`](../interfaces/WindowCloseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "primaryWindowChanged", callback: (args: PrimaryWindowChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"primaryWindowChanged"` | | `callback` | (`args`: [`PrimaryWindowChangedEventData`](../interfaces/PrimaryWindowChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Deprecated Use `Application.android.once()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`once`](ApplicationCommon.md#once-1) ## Accessors ### activeWindow #### Get Signature ```ts get activeWindow(): NativeWindow; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the NativeWindow the user is currently interacting with - the one that activated most recently and is still attached. Falls back to the primary window while no window holds activation, which is the case before the first window activates and on a platform that never raises `activate`. ##### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`activeWindow`](ApplicationCommon.md#activewindow) *** ### android #### Get Signature ```ts get android(): AndroidApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/application/application-common.ts) ##### Returns [`AndroidApplication`](AndroidApplication.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`AndroidApplication`](ApplicationCommon.md#androidapplication) *** ### autoSystemAppearanceChanged #### Get Signature ```ts get autoSystemAppearanceChanged(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Boolean to enable/disable systemAppearanceChanged ##### Returns `boolean` #### Set Signature ```ts set autoSystemAppearanceChanged(value: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | ##### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`autoSystemAppearanceChanged`](ApplicationCommon.md#autosystemappearancechanged) *** ### delegate #### Get Signature ```ts get delegate(): any; ``` Defined in: [application/application.d.ts:196](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L196) 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:201](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L201) 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.1.0-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.1.0-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.1.0-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:186](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L186) The [UIApplication](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html). ##### Returns `UIApplication` *** ### primaryWindow #### Get Signature ```ts get primaryWindow(): NativeWindow; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the primary NativeWindow. ##### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`primaryWindow`](ApplicationCommon.md#primarywindow) *** ### rootController #### Get Signature ```ts get rootController(): UIViewController; ``` Defined in: [application/application.d.ts:181](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L181) 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.1.0-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:191](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L191) The key window. ##### Returns `UIWindow` ## Methods ### \_onPrimaryWindowPromoted() ```ts protected _onPrimaryWindowPromoted(nativeWindow: NativeWindow): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Hook for platform-specific bookkeeping right after a window takes over the primary role, before `primaryWindowChanged` is raised. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeWindow` | [`NativeWindow`](NativeWindow.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`_onPrimaryWindowPromoted`](ApplicationCommon.md#onprimarywindowpromoted) *** ### \_onWindowRegistered() ```ts protected _onWindowRegistered(nativeWindow: NativeWindow): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Hook for platform-specific bookkeeping right after a window joins the registry, before `windowOpen` is raised. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeWindow` | [`NativeWindow`](NativeWindow.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`_onWindowRegistered`](ApplicationCommon.md#onwindowregistered) *** ### addCss() ```ts addCss(cssText: string, attributeScoped?: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:244](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L244) 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:252](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L252) 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.1.0-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:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L291) 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 window to close. Can be a NativeWindow, a View, a UIWindow, a 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.1.0-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) *** ### defaultDiscardSceneSessions() ```ts defaultDiscardSceneSessions(application: UIApplication, sceneSessions: NSSet): void; ``` Defined in: [application/application.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L236) NativeScript's default implementation of the `UIApplicationDelegate` `applicationDidDiscardSceneSessions` method, which retires the windows belonging to the discarded sessions. It is installed automatically on the application delegate class unless that class already implements the method, in which case forward to it from there so window bookkeeping stays correct. #### Parameters | Parameter | Type | | ------ | ------ | | `application` | `UIApplication` | | `sceneSessions` | `NSSet`<`UISceneSession`> | #### Returns `void` *** ### defaultSceneConfiguration() ```ts defaultSceneConfiguration( application: UIApplication, connectingSceneSession: UISceneSession, options: UISceneConnectionOptions): UISceneConfiguration; ``` Defined in: [application/application.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L225) NativeScript's default implementation of the `UIApplicationDelegate` `applicationConfigurationForConnectingSceneSessionOptions` method. It is installed automatically on the application delegate class unless that class already implements the method. A delegate that does implement it can handle the scenes it cares about and forward the rest here: ```ts applicationConfigurationForConnectingSceneSessionOptions(app, session, options) { if (session.role === myCustomRole) { return myConfig; } return Application.ios.defaultSceneConfiguration(app, session, options); } ``` `onSceneConfiguration` is consulted first. Scenes with the `UIWindowSceneSessionRoleApplication` role then get a configuration backed by NativeScript's SceneDelegate; every other role gets a bare configuration that NativeScript does not manage. #### Parameters | Parameter | Type | | ------ | ------ | | `application` | `UIApplication` | | `connectingSceneSession` | `UISceneSession` | | `options` | `UISceneConnectionOptions` | #### Returns `UISceneConfiguration` *** ### ~~getAllScenes()~~ ```ts getAllScenes(): UIScene[]; ``` Defined in: [application/application.d.ts:303](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L303) Gets all scenes for the application. #### Returns `UIScene`\[] #### Deprecated Use `getWindows()` instead. *** ### ~~getAllWindows()~~ ```ts getAllWindows(): UIWindow[]; ``` Defined in: [application/application.d.ts:297](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L297) Gets all windows for the application. #### Returns `UIWindow`\[] #### Deprecated Use `getWindows()` instead. *** ### getCssFileName() ```ts getCssFileName(): string; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getOrientation`](ApplicationCommon.md#getorientation) *** ### ~~getPrimaryScene()~~ ```ts getPrimaryScene(): any; ``` Defined in: [application/application.d.ts:321](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L321) Gets the primary scene for the application. #### Returns `any` #### Deprecated Use `primaryWindow?.ios?.scene` instead. *** ### ~~getPrimaryWindow()~~ ```ts getPrimaryWindow(): UIWindow; ``` Defined in: [application/application.d.ts:315](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L315) Gets the primary window for the application. #### Returns `UIWindow` #### Deprecated Use `primaryWindow?.ios?.uiWindow` instead. *** ### getResources() ```ts getResources(): any; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getSystemAppearance`](ApplicationCommon.md#getsystemappearance) *** ### getWindowById() ```ts getWindowById(id: string): NativeWindow; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get a registered NativeWindow by its id. #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindowById`](ApplicationCommon.md#getwindowbyid) *** ### getWindowContentResolver() ```ts getWindowContentResolver(): WindowContentResolver; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns [`WindowContentResolver`](../type-aliases/WindowContentResolver.md) The callback currently supplying window content, if any. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindowContentResolver`](ApplicationCommon.md#getwindowcontentresolver) *** ### getWindows() #### Call Signature ```ts getWindows(role: "all"): WindowBase[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the active windows, filtered by role. Defaults to the view-carrying app windows (`application` and `embedded`). Pass `'all'` to include every registered surface, including ones that carry no view tree. ##### Parameters | Parameter | Type | | ------ | ------ | | `role` | `"all"` | ##### Returns [`WindowBase`](WindowBase.md)\[] ##### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindows`](ApplicationCommon.md#getwindows) #### Call Signature ```ts getWindows(role?: | WindowRole | WindowRole[]): NativeWindow[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the active windows, filtered by role. Defaults to the view-carrying app windows (`application` and `embedded`). Pass `'all'` to include every registered surface, including ones that carry no view tree. ##### Parameters | Parameter | Type | | ------ | ------ | | `role?` | | [`WindowRole`](../type-aliases/WindowRole.md) | [`WindowRole`](../type-aliases/WindowRole.md)\[] | ##### Returns [`NativeWindow`](NativeWindow.md)\[] ##### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindows`](ApplicationCommon.md#getwindows) #### Call Signature ```ts getWindows(role?: | "all" | WindowRole | WindowRole[]): WindowBase[]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Get the active windows, filtered by role. Defaults to the view-carrying app windows (`application` and `embedded`). Pass `'all'` to include every registered surface, including ones that carry no view tree. ##### Parameters | Parameter | Type | | ------ | ------ | | `role?` | | `"all"` | [`WindowRole`](../type-aliases/WindowRole.md) | [`WindowRole`](../type-aliases/WindowRole.md)\[] | ##### Returns [`WindowBase`](WindowBase.md)\[] ##### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getWindows`](ApplicationCommon.md#getwindows) *** ### ~~getWindowScenes()~~ ```ts getWindowScenes(): UIWindowScene[]; ``` Defined in: [application/application.d.ts:309](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L309) Gets all window scenes for the application. #### Returns `UIWindowScene`\[] #### Deprecated Use `getWindows()` instead. *** ### hasLaunched() ```ts hasLaunched(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`hasLaunched`](ApplicationCommon.md#haslaunched) *** ### initRootView() ```ts initRootView(rootView: View, window?: NativeWindow): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | - | | `window?` | [`NativeWindow`](NativeWindow.md) | the window the root view belongs to. Supplies the window-scoped CSS classes; without it they come from the primary window. | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`initRootView`](ApplicationCommon.md#initrootview) *** ### isUsingSceneLifecycle() ```ts isUsingSceneLifecycle(): boolean; ``` Defined in: [application/application.d.ts:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L276) 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.1.0-core/packages/core/application/application-common.ts) #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) #### Deprecated Use Application.primaryWindow?.layoutDirection() - or the NativeWindow of the relevant view - instead. Continues to reflect the primary window. #### 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.1.0-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.1.0-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.1.0-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(options?: WindowOpenOptions): void; ``` Defined in: [application/application.d.ts:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L284) Opens a new window (scene). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | [`WindowOpenOptions`](../interfaces/WindowOpenOptions.md) | Options for the new window. `options.data` is serialized into the activating scene's `NSUserActivity.userInfo`. | #### Returns `void` #### Overrides [`ApplicationCommon`](ApplicationCommon.md).[`openWindow`](ApplicationCommon.md#openwindow) *** ### ~~orientation()~~ ```ts orientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` #### Deprecated Use Application.primaryWindow?.orientation() - or the NativeWindow of the relevant view - instead. Continues to reflect the primary window. #### 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.1.0-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:261](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L261) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setSystemAppearance`](ApplicationCommon.md#setsystemappearance) *** ### setWindowContentResolver() ```ts setWindowContentResolver(resolver: WindowContentResolver): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) Sets the callback that supplies the UI for windows that need content. Pass `null` to remove a previously set resolver. #### Parameters | Parameter | Type | | ------ | ------ | | `resolver` | [`WindowContentResolver`](../type-aliases/WindowContentResolver.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setWindowContentResolver`](ApplicationCommon.md#setwindowcontentresolver) *** ### setWindowRootView() ```ts setWindowRootView(window: UIWindow, view: View): void; ``` Defined in: [application/application.d.ts:328](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L328) Sets the root view for a specific window. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `window` | `UIWindow` | The window to set the root view for. | | `view` | [`View`](View.md) | The view to set as the root view. | #### Returns `void` *** ### supportsMultipleScenes() ```ts supportsMultipleScenes(): boolean; ``` Defined in: [application/application.d.ts:271](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L271) Checks if the application supports multiple scenes. #### Returns `boolean` *** ### supportsScenes() ```ts supportsScenes(): boolean; ``` Defined in: [application/application.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L266) 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.1.0-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` #### Deprecated Use Application.primaryWindow?.systemAppearance() - or the NativeWindow of the relevant view - instead. Continues to reflect the primary window. #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isStyleScopeHost`](TextBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`TextBase`](TextBase.md).[`_nativeWindow`](TextBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityIgnoresInvertColors`](TextBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`automationText`](TextBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`TextBase`](TextBase.md).[`cssClasses`](TextBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`TextBase`](TextBase.md).[`cssPseudoClasses`](TextBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderTopWidth`](TextBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveColumnGap`](TextBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginTop`](TextBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMaxHeight`](TextBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMaxWidth`](TextBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMinWidth`](TextBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveRowGap`](TextBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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.1.0-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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginTop`](TextBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`maxHeight`](TextBase.md#maxheight) *** ### maxLines ```ts maxLines: number; ``` Defined in: [ui/text-base/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`maxWidth`](TextBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`minWidth`](TextBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`touchAnimation`](TextBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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.1.0-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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`TextBase`](TextBase.md).[`androidOverflowInsetEvent`](TextBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`TextBase`](TextBase.md).[`closedModallyEvent`](TextBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`_getNativeViewsCount`](TextBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`TextBase`](TextBase.md).[`_getRootModalHost`](TextBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredState`](TextBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredWidth`](TextBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`TextBase`](TextBase.md).[`getNativeWindow`](TextBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isStyleScopeHost`](CustomLayoutView.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_nativeWindow`](CustomLayoutView.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityIgnoresInvertColors`](CustomLayoutView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`automationText`](CustomLayoutView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssClasses`](CustomLayoutView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssPseudoClasses`](CustomLayoutView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderTopWidth`](CustomLayoutView.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveColumnGap`](CustomLayoutView.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginTop`](CustomLayoutView.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMaxHeight`](CustomLayoutView.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMaxWidth`](CustomLayoutView.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMinWidth`](CustomLayoutView.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveRowGap`](CustomLayoutView.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ignoreTouchAnimation`](CustomLayoutView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginTop`](CustomLayoutView.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`maxHeight`](CustomLayoutView.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`maxWidth`](CustomLayoutView.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`minWidth`](CustomLayoutView.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`touchAnimation`](CustomLayoutView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidOverflowInsetEvent`](CustomLayoutView.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`closedModallyEvent`](CustomLayoutView.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getNativeViewsCount`](CustomLayoutView.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getRootModalHost`](CustomLayoutView.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredState`](CustomLayoutView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredWidth`](CustomLayoutView.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getNativeWindow`](CustomLayoutView.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._isStyleScopeHost ``` *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from ```ts LiquidGlassCommon._nativeWindow ``` *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityIgnoresInvertColors ``` *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.automationText ``` *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from ```ts LiquidGlassCommon.cssClasses ``` *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from ```ts LiquidGlassCommon.cssPseudoClasses ``` *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveBorderTopWidth ``` *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveColumnGap ``` *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMarginTop ``` *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMaxHeight ``` *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMaxWidth ``` *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMinWidth ``` *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveRowGap ``` *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.ignoreTouchAnimation ``` *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.marginTop ``` *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from ```ts LiquidGlassCommon.maxHeight ``` *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from ```ts LiquidGlassCommon.maxWidth ``` *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.minWidth ``` *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.touchAnimation ``` *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) visionOS only #### Ns Property #### Inherited from ```ts LiquidGlassCommon.visionHoverStyle ``` *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) visionOS only #### Ns Property #### Inherited from ```ts LiquidGlassCommon.visionIgnoreHoverStyle ``` *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from ```ts LiquidGlassCommon.androidOverflowInsetEvent ``` *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from ```ts LiquidGlassCommon.closedModallyEvent ``` *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from ```ts LiquidGlassCommon._getNativeViewsCount ``` *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from ```ts LiquidGlassCommon._getRootModalHost ``` *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) Returns the raw height component. #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getMeasuredHeight ``` *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getMeasuredState ``` *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getMeasuredWidth ``` *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from ```ts LiquidGlassCommon.getNativeWindow ``` *** ### getRows() ```ts getRows(): ItemSpec[]; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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.1.0-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.1.0-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.1.0-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.1.0-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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._isStyleScopeHost ``` *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from ```ts LiquidGlassContainerCommon._nativeWindow ``` *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityIgnoresInvertColors ``` *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.automationText ``` *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from ```ts LiquidGlassContainerCommon.cssClasses ``` *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from ```ts LiquidGlassContainerCommon.cssPseudoClasses ``` *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveBorderTopWidth ``` *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveColumnGap ``` *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMarginTop ``` *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMaxHeight ``` *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMaxWidth ``` *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMinWidth ``` *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveRowGap ``` *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.ignoreTouchAnimation ``` *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.marginTop ``` *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.maxHeight ``` *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.maxWidth ``` *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.minWidth ``` *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.touchAnimation ``` *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) visionOS only #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.visionHoverStyle ``` *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) visionOS only #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.visionIgnoreHoverStyle ``` *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from ```ts LiquidGlassContainerCommon.androidOverflowInsetEvent ``` *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from ```ts LiquidGlassContainerCommon.closedModallyEvent ``` *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon._getNativeViewsCount ``` *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from ```ts LiquidGlassContainerCommon._getRootModalHost ``` *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) Returns the raw height component. #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.getMeasuredHeight ``` *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.getMeasuredState ``` *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.getMeasuredWidth ``` *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from ```ts LiquidGlassContainerCommon.getNativeWindow ``` *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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.1.0-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.1.0-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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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.1.0-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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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) *** ### iosSearchInsetBehavior ```ts iosSearchInsetBehavior: "always" | "never" | "automatic" | "scrollableAxes"; ``` Defined in: [ui/list-view/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L174) iOS-only. Controls the underlying UIScrollView's `contentInsetAdjustmentBehavior` when `showSearch` is enabled. Defaults to `'automatic'` when the search controller is hosted on `navigationItem.searchController` (UINavigationController context), and `'never'` otherwise (when the search bar is the `tableHeaderView`). #### Ns Property *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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.1.0-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.1.0-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.1.0-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.1.0-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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:201](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L201) 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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:213](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L213) 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:221](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L221) 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:226](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L226) 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:231](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L231) 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:236](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L236) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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:179](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L179) Forces the ListView to reload all its items. #### 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.1.0-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.1.0-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.1.0-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:187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L187) 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:195](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L195) 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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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:40](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L40) #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/transition/index.d.ts#L31) #### Inherited from [`Transition`](Transition.md).[`presenting`](Transition.md#presenting) *** ### sharedElements? ```ts optional sharedElements?: { _allPresentingViews?: View[]; independent?: SharedElementSettings & { isPresented?: boolean; }[]; presented?: SharedElementSettings[]; presenting?: SharedElementSettings[]; }; ``` Defined in: [ui/transition/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L32) #### \_allPresentingViews? ```ts optional _allPresentingViews?: View[]; ``` #### 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.1.0-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:39](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L39) #### 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:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L59) #### 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:44](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L44) #### 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:45](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L45) #### 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:43](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L43) #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`getCurve`](Transition.md#getcurve) *** ### getDuration() ```ts getDuration(): number; ``` Defined in: [ui/transition/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L41) #### 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:49](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L49) #### 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:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L53) #### 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:55](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L55) #### 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:57](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L57) #### 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:51](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L51) #### 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:42](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L42) #### 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:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L47) #### 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.1.0-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.1.0-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.1.0-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.1.0-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/NativeWindow.md' description: >- A window surface that hosts a NativeScript view tree. Wraps a platform window (iOS UIWindowScene + UIWindow, Android Activity) and owns the per-window root v... --- Defined in: [native-window/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L266) A window surface that hosts a NativeScript view tree. Wraps a platform window (iOS UIWindowScene + UIWindow, Android Activity) and owns the per-window root view, its CSS classes and its lifecycle events. Instances are created by the framework as the platform connects surfaces; reach them through `Application.activeWindow`, `Application.primaryWindow`, `Application.getWindows()` or `Application.getWindowById()`, and use `ios` / `android` to get at the native objects. ## Extends * [`WindowBase`](WindowBase.md) ## Constructors ### Constructor ```ts new NativeWindow(): NativeWindow; ``` #### Returns `NativeWindow` #### Inherited from [`WindowBase`](WindowBase.md).[`constructor`](WindowBase.md#constructor) ## Properties ### android? ```ts readonly optional android?: { activity: AppCompatActivity; }; ``` Defined in: [native-window/index.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L71) The Android surface backing this window, or `undefined` when not running on Android or when the activity is already gone. #### activity ```ts readonly activity: AppCompatActivity; ``` #### Inherited from [`WindowBase`](WindowBase.md).[`android`](WindowBase.md#android) *** ### id ```ts readonly id: string; ``` Defined in: [native-window/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L41) Stable identifier of this window, unique for the lifetime of the JS context. Survives a detach/re-attach, so it can be used to correlate a window across an iOS scene reconnect or an Android activity recreation. #### Inherited from [`WindowBase`](WindowBase.md).[`id`](WindowBase.md#id) *** ### ios? ```ts readonly optional ios?: { scene?: UIWindowScene; uiWindow: UIWindow; }; ``` Defined in: [native-window/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L65) The iOS surface backing this window, or `undefined` when not running on iOS. `scene` is absent for apps still on the pre-scene (window-only) lifecycle. #### scene? ```ts readonly optional scene?: UIWindowScene; ``` #### uiWindow ```ts readonly uiWindow: UIWindow; ``` #### Inherited from [`WindowBase`](WindowBase.md).[`ios`](WindowBase.md#ios) *** ### isPrimary ```ts readonly isPrimary: boolean; ``` Defined in: [native-window/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L59) Whether this is the application's primary window. At most one window is primary at a time. When the primary window closes another attached window is promoted and `primaryWindowChanged` is raised on the Application. #### Inherited from [`WindowBase`](WindowBase.md).[`isPrimary`](WindowBase.md#isprimary) *** ### role ```ts readonly role: WindowRole; ``` Defined in: [native-window/index.d.ts:46](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L46) The purpose this window surface serves. #### Inherited from [`WindowBase`](WindowBase.md).[`role`](WindowBase.md#role) *** ### rootView ```ts readonly rootView: View; ``` Defined in: [native-window/index.d.ts:270](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L270) The root view currently hosted by this window, if any. *** ### state ```ts readonly state: WindowState; ``` Defined in: [native-window/index.d.ts:51](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L51) Where this window currently sits in its lifecycle. #### Inherited from [`WindowBase`](WindowBase.md).[`state`](WindowBase.md#state) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`WindowBase`](WindowBase.md).[`propertyChangeEvent`](WindowBase.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.1.0-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 [`WindowBase`](WindowBase.md).[`_createPropertyChangeData`](WindowBase.md#createpropertychangedata) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`WindowBase`](WindowBase.md).[`_emit`](WindowBase.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.1.0-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 [`WindowBase`](WindowBase.md).[`addEventListener`](WindowBase.md#addeventlistener) *** ### close() ```ts abstract close(): void; ``` Defined in: [native-window/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L79) Closes this window. Ends the window session: the native surface is dismissed, `close` is raised and the window is dropped from the Application registry. #### Returns `void` #### Inherited from [`WindowBase`](WindowBase.md).[`close`](WindowBase.md#close) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`WindowBase`](WindowBase.md).[`get`](WindowBase.md#get) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`WindowBase`](WindowBase.md).[`hasListeners`](WindowBase.md#haslisteners) *** ### layoutDirection() ```ts layoutDirection(): LayoutDirectionType; ``` Defined in: [native-window/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L310) The current layout direction of this window. Read from the native surface while the window is attached; a detached window reports the last value it saw. A read that catches a change the platform has not reported yet also raises `layoutDirectionChanged`, so a change is never swallowed by the reading. #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`WindowBase`](WindowBase.md).[`notify`](WindowBase.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.1.0-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 [`WindowBase`](WindowBase.md).[`notifyPropertyChange`](WindowBase.md#notifypropertychange) *** ### off() #### Call Signature ```ts off( event: "contentLoaded", callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:393](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L393) Removes the listener(s) for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `event` | `"contentLoaded"` | - | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.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` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activate", callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:394](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L394) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activate"` | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "deactivate", callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:395](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L395) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"deactivate"` | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "background", callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L396) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"background"` | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "foreground", callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:397](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L397) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"foreground"` | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "attached", callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:398](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L398) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"attached"` | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "detached", callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L399) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"detached"` | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "close", callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:400](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L400) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"close"` | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "displayed", callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:401](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L401) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "orientationChanged", callback?: (data: WindowOrientationChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:402](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L402) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback?` | (`data`: [`WindowOrientationChangedEventData`](../interfaces/WindowOrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "systemAppearanceChanged", callback?: (data: WindowSystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L403) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback?` | (`data`: [`WindowSystemAppearanceChangedEventData`](../interfaces/WindowSystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "layoutDirectionChanged", callback?: (data: WindowLayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:404](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L404) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback?` | (`data`: [`WindowLayoutDirectionChangedEventData`](../interfaces/WindowLayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityCreated", callback?: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:405](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L405) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityCreated"` | | `callback?` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityDestroyed", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L406) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityDestroyed"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityStarted", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:407](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L407) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStarted"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityPaused", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:408](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L408) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityPaused"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityResumed", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:409](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L409) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResumed"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityStopped", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L410) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStopped"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "saveActivityState", callback?: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:411](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L411) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"saveActivityState"` | | `callback?` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityResult", callback?: (args: AndroidActivityResultEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:412](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L412) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResult"` | | `callback?` | (`args`: [`AndroidActivityResultEventData`](../interfaces/AndroidActivityResultEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityBackPressed", callback?: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L413) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityBackPressed"` | | `callback?` | (`args`: [`AndroidActivityBackPressedEventData`](../interfaces/AndroidActivityBackPressedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityNewIntent", callback?: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:414](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L414) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityNewIntent"` | | `callback?` | (`args`: [`AndroidActivityNewIntentEventData`](../interfaces/AndroidActivityNewIntentEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "activityRequestPermissions", callback?: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:415](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L415) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityRequestPermissions"` | | `callback?` | (`args`: [`AndroidActivityRequestPermissionsEventData`](../interfaces/AndroidActivityRequestPermissionsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "sceneWillConnect", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:416](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L416) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillConnect"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "sceneDidActivate", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L417) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidActivate"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "sceneWillResignActive", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:418](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L418) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillResignActive"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "sceneWillEnterForeground", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:419](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L419) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillEnterForeground"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "sceneDidEnterBackground", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L420) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidEnterBackground"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "sceneDidDisconnect", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:421](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L421) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidDisconnect"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "sceneOpenURLContexts", callback?: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:422](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L422) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback?` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "sceneContinueUserActivity", callback?: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:423](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L423) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback?` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( event: "scenePerformActionForShortcutItem", callback?: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L424) Removes a listener for the specified event name. Omitting the callback removes every listener registered for that event on this window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback?` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`off`](WindowBase.md#off) #### Call Signature ```ts off( eventName: string, callback?: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:425](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L425) ##### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts WindowBase.off ``` *** ### on() #### Call Signature ```ts on( event: "contentLoaded", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:321](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L321) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"contentLoaded"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activate", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:326](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L326) Raised when the window loses focus. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activate"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "deactivate", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L327) Raised when the window enters the background. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"deactivate"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "background", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:328](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L328) Raised when the window enters the foreground. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"background"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "foreground", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L329) Raised when a native surface is bound to the window - both on the first connect and on every re-attach after a `detached`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"foreground"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "attached", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:330](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L330) Raised when the native surface goes away while the window session stays alive (iOS scene disconnect, Android activity recreation). The window stays registered on the Application and keeps its listeners, so the same instance is handed back when a surface re-attaches and handlers registered before the detach keep working afterwards. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"attached"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "detached", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:331](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L331) Raised when the window session ends for good. Fires exactly once per window. Listeners stay registered for the whole teardown, so a handler added at any earlier point still observes it; immediately after it is dispatched the framework drops every listener on the instance, so nothing registered on a window outlives the window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"detached"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "close", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L332) Raised after the window content has been displayed for the first time. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"close"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "displayed", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:333](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L333) Raised when the orientation of this window changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "orientationChanged", callback: (data: WindowOrientationChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:334](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L334) Raised when the system appearance of this window changes between light and dark. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`data`: [`WindowOrientationChangedEventData`](../interfaces/WindowOrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "systemAppearanceChanged", callback: (data: WindowSystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:335](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L335) Raised when the layout direction of this window changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`data`: [`WindowSystemAppearanceChangedEventData`](../interfaces/WindowSystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "layoutDirectionChanged", callback: (data: WindowLayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L336) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`data`: [`WindowLayoutDirectionChangedEventData`](../interfaces/WindowLayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityCreated", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:337](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L337) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityCreated"` | | `callback` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityDestroyed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:338](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L338) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityDestroyed"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityStarted", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L339) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStarted"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityPaused", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:340](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L340) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityPaused"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityResumed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:341](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L341) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResumed"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityStopped", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:342](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L342) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStopped"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "saveActivityState", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L343) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"saveActivityState"` | | `callback` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityResult", callback: (args: AndroidActivityResultEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:344](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L344) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResult"` | | `callback` | (`args`: [`AndroidActivityResultEventData`](../interfaces/AndroidActivityResultEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityBackPressed", callback: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:345](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L345) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityBackPressed"` | | `callback` | (`args`: [`AndroidActivityBackPressedEventData`](../interfaces/AndroidActivityBackPressedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityNewIntent", callback: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L346) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityNewIntent"` | | `callback` | (`args`: [`AndroidActivityNewIntentEventData`](../interfaces/AndroidActivityNewIntentEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "activityRequestPermissions", callback: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:347](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L347) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityRequestPermissions"` | | `callback` | (`args`: [`AndroidActivityRequestPermissionsEventData`](../interfaces/AndroidActivityRequestPermissionsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "sceneWillConnect", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L348) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillConnect"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "sceneDidActivate", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:349](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L349) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidActivate"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "sceneWillResignActive", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:350](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L350) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillResignActive"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "sceneWillEnterForeground", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:351](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L351) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillEnterForeground"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "sceneDidEnterBackground", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:352](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L352) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidEnterBackground"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "sceneDidDisconnect", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L353) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidDisconnect"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L354) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:355](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L355) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:356](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L356) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | - | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.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 [`WindowBase`](WindowBase.md).[`on`](WindowBase.md#on) #### Call Signature ```ts on( eventName: string, callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:357](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L357) Raised when the root view content of this window is set or changed. Bringing a window up follows a fixed order that app code can rely on: Application `ready` -> Application `windowOpen` -> the raw platform connect/create event (`sceneWillConnect` / `activityCreated`) -> content resolution (the window content resolver, or the legacy `launch` bridge for the first window) -> `contentLoaded` -> `activate` and `displayed`. ##### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts WindowBase.on ``` *** ### once() #### Call Signature ```ts once( event: "contentLoaded", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:359](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L359) Adds a listener for the specified event name, which, once fired, will remove itself. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `event` | `"contentLoaded"` | - | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.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 [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activate", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:360](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L360) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activate"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "deactivate", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L361) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"deactivate"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "background", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:362](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L362) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"background"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "foreground", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:363](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L363) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"foreground"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "attached", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L364) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"attached"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "detached", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:365](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L365) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"detached"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "close", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:366](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L366) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"close"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "displayed", callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:367](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L367) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "orientationChanged", callback: (data: WindowOrientationChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L368) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`data`: [`WindowOrientationChangedEventData`](../interfaces/WindowOrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "systemAppearanceChanged", callback: (data: WindowSystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:369](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L369) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`data`: [`WindowSystemAppearanceChangedEventData`](../interfaces/WindowSystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "layoutDirectionChanged", callback: (data: WindowLayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:370](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L370) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`data`: [`WindowLayoutDirectionChangedEventData`](../interfaces/WindowLayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityCreated", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L371) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityCreated"` | | `callback` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityDestroyed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:372](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L372) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityDestroyed"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityStarted", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:373](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L373) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStarted"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityPaused", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:374](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L374) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityPaused"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityResumed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L375) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResumed"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityStopped", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:376](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L376) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStopped"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "saveActivityState", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:377](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L377) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"saveActivityState"` | | `callback` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityResult", callback: (args: AndroidActivityResultEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L378) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResult"` | | `callback` | (`args`: [`AndroidActivityResultEventData`](../interfaces/AndroidActivityResultEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityBackPressed", callback: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:379](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L379) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityBackPressed"` | | `callback` | (`args`: [`AndroidActivityBackPressedEventData`](../interfaces/AndroidActivityBackPressedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityNewIntent", callback: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:380](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L380) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityNewIntent"` | | `callback` | (`args`: [`AndroidActivityNewIntentEventData`](../interfaces/AndroidActivityNewIntentEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "activityRequestPermissions", callback: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:381](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L381) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityRequestPermissions"` | | `callback` | (`args`: [`AndroidActivityRequestPermissionsEventData`](../interfaces/AndroidActivityRequestPermissionsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "sceneWillConnect", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L382) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillConnect"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "sceneDidActivate", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:383](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L383) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidActivate"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "sceneWillResignActive", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:384](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L384) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillResignActive"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "sceneWillEnterForeground", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L385) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillEnterForeground"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "sceneDidEnterBackground", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:386](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L386) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidEnterBackground"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "sceneDidDisconnect", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:387](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L387) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidDisconnect"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:388](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L388) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L389) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:390](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L390) Adds a listener for the specified event name that is removed as soon as it is raised once. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`WindowBase`](WindowBase.md).[`once`](WindowBase.md#once) #### Call Signature ```ts once( eventName: string, callback: (data: NativeWindowEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:391](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L391) ##### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`NativeWindowEventData`](../interfaces/NativeWindowEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts WindowBase.once ``` *** ### orientation() ```ts orientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [native-window/index.d.ts:292](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L292) The current orientation of this window. Read from the native surface while the window is attached; a detached window reports the last value it saw. A read that catches a change the platform has not reported yet also raises `orientationChanged`, so a change is never swallowed by the reading. #### Returns `"portrait"` | `"landscape"` | `"unknown"` *** ### 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.1.0-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 [`WindowBase`](WindowBase.md).[`removeEventListener`](WindowBase.md#removeeventlistener) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`WindowBase`](WindowBase.md).[`set`](WindowBase.md#set) *** ### setContent() ```ts setContent(content: string | View | NavigationEntry): void; ``` Defined in: [native-window/index.d.ts:283](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L283) Sets the content of this window. Replaces any content set earlier, tears the previous root view down and raises `contentLoaded`. A view that is already the root of another window is released from it first — that window's `rootView` becomes null — while the view itself is left intact. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `content` | `string` | [`View`](View.md) | `NavigationEntry` | A View, a NavigationEntry, or the name of a module to load. | #### Returns `void` *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`WindowBase`](WindowBase.md).[`setProperty`](WindowBase.md#setproperty) *** ### systemAppearance() ```ts systemAppearance(): "dark" | "light"; ``` Defined in: [native-window/index.d.ts:301](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L301) The current system appearance of this window. Read from the native surface while the window is attached; a detached window reports the last value it saw. A read that catches a change the platform has not reported yet also raises `systemAppearanceChanged`, so a change is never swallowed by the reading. #### Returns `"dark"` | `"light"` *** ### ~~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.1.0-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 [`WindowBase`](WindowBase.md).[`addEventListener`](WindowBase.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.1.0-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 [`WindowBase`](WindowBase.md).[`off`](WindowBase.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.1.0-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 [`WindowBase`](WindowBase.md).[`on`](WindowBase.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.1.0-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 [`WindowBase`](WindowBase.md).[`once`](WindowBase.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.1.0-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 [`WindowBase`](WindowBase.md).[`removeEventListener`](WindowBase.md#removeeventlistener-1) --- --- 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveBorderTopWidth`](ActionItem.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveColumnGap`](ActionItem.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMarginTop`](ActionItem.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMaxHeight`](ActionItem.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMaxWidth`](ActionItem.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMinWidth`](ActionItem.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveRowGap`](ActionItem.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### cssType #### Get Signature ```ts get cssType(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the CSS fully qualified type name used for selector matching. ##### Returns `string` #### Set Signature ```ts set cssType(value: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`cssType`](ActionItem.md#csstype) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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 * [`WindowBase`](WindowBase.md) * [`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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_isStyleScopeHost`](PageBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`PageBase`](PageBase.md).[`_nativeWindow`](PageBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityIgnoresInvertColors`](PageBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`automationText`](PageBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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.1.0-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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`PageBase`](PageBase.md).[`cssClasses`](PageBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`PageBase`](PageBase.md).[`cssPseudoClasses`](PageBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveBorderTopWidth`](PageBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveColumnGap`](PageBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMarginTop`](PageBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMaxHeight`](PageBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMaxWidth`](PageBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMinWidth`](PageBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveRowGap`](PageBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`ignoreTouchAnimation`](PageBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`marginTop`](PageBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`maxHeight`](PageBase.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`maxWidth`](PageBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`minWidth`](PageBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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.1.0-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.1.0-core/packages/core/ui/page/index.d.ts#L125) iOS Only Perform an action when user performs the "escape" gesture #### Returns `boolean` #### Ns Property #### Overrides [`PageBase`](PageBase.md).[`onAccessibilityPerformEscape`](PageBase.md#onaccessibilityperformescape) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`touchAnimation`](PageBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`PageBase`](PageBase.md).[`androidOverflowInsetEvent`](PageBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`PageBase`](PageBase.md).[`closedModallyEvent`](PageBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`_getNativeViewsCount`](PageBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`PageBase`](PageBase.md).[`_getRootModalHost`](PageBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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.1.0-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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`getMeasuredState`](PageBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`getMeasuredWidth`](PageBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`PageBase`](PageBase.md).[`getNativeWindow`](PageBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_isStyleScopeHost`](ContentView.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`ContentView`](ContentView.md).[`_nativeWindow`](ContentView.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/page/page-common.ts) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityIgnoresInvertColors`](ContentView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`automationText`](ContentView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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.1.0-core/packages/core/ui/page/page-common.ts) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`ContentView`](ContentView.md).[`cssClasses`](ContentView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`ContentView`](ContentView.md).[`cssPseudoClasses`](ContentView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveBorderTopWidth`](ContentView.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveColumnGap`](ContentView.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMarginTop`](ContentView.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMaxHeight`](ContentView.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMaxWidth`](ContentView.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMinWidth`](ContentView.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveRowGap`](ContentView.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/page/page-common.ts) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/page/page-common.ts) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`ignoreTouchAnimation`](ContentView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`marginTop`](ContentView.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`maxHeight`](ContentView.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`maxWidth`](ContentView.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`minWidth`](ContentView.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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) *** ### onAccessibilityPerformEscape? ```ts optional onAccessibilityPerformEscape?: () => boolean; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/page/page-common.ts) iOS only. Perform an action when the user performs the "escape" gesture. #### Returns `boolean` *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`touchAnimation`](ContentView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`ContentView`](ContentView.md).[`androidOverflowInsetEvent`](ContentView.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`ContentView`](ContentView.md).[`closedModallyEvent`](ContentView.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`_getNativeViewsCount`](ContentView.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`ContentView`](ContentView.md).[`_getRootModalHost`](ContentView.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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.1.0-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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`getMeasuredState`](ContentView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`getMeasuredWidth`](ContentView.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`ContentView`](ContentView.md).[`getNativeWindow`](ContentView.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/transition/index.d.ts#L31) #### Inherited from [`Transition`](Transition.md).[`presenting`](Transition.md#presenting) *** ### sharedElements? ```ts optional sharedElements?: { _allPresentingViews?: View[]; independent?: SharedElementSettings & { isPresented?: boolean; }[]; presented?: SharedElementSettings[]; presenting?: SharedElementSettings[]; }; ``` Defined in: [ui/transition/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L32) #### \_allPresentingViews? ```ts optional _allPresentingViews?: View[]; ``` #### 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.1.0-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:39](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L39) #### 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:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L59) #### 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:44](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L44) #### 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:45](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L45) #### 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:43](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L43) #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`getCurve`](Transition.md#getcurve) *** ### getDuration() ```ts getDuration(): number; ``` Defined in: [ui/transition/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L41) #### 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:49](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L49) #### 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:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L53) #### 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:55](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L55) #### 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:57](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L57) #### 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:51](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L51) #### 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:42](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L42) #### 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:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L47) #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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.1.0-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.1.0-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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxValue ```ts maxValue: number; ``` Defined in: [ui/progress/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/progress/index.d.ts#L39) Gets or sets a progress max value. #### Ns Property *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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.1.0-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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_nativeWindow`](LayoutBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveColumnGap`](LayoutBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxHeight`](LayoutBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxWidth`](LayoutBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveRowGap`](LayoutBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxHeight`](LayoutBase.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxWidth`](LayoutBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`closedModallyEvent`](LayoutBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/proxy-view-container/index.ts) #### Returns `number` #### Overrides [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalHost`](LayoutBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getNativeWindow`](LayoutBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isStyleScopeHost`](CustomLayoutView.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_nativeWindow`](CustomLayoutView.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityIgnoresInvertColors`](CustomLayoutView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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.1.0-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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`automationText`](CustomLayoutView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssClasses`](CustomLayoutView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssPseudoClasses`](CustomLayoutView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderTopWidth`](CustomLayoutView.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveColumnGap`](CustomLayoutView.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginTop`](CustomLayoutView.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMaxHeight`](CustomLayoutView.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMaxWidth`](CustomLayoutView.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMinWidth`](CustomLayoutView.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveRowGap`](CustomLayoutView.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### 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.1.0-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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginTop`](CustomLayoutView.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`maxHeight`](CustomLayoutView.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`maxWidth`](CustomLayoutView.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`minWidth`](CustomLayoutView.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`touchAnimation`](CustomLayoutView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidOverflowInsetEvent`](CustomLayoutView.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`closedModallyEvent`](CustomLayoutView.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-core/packages/core/ui/repeater/index.ts) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getNativeViewsCount`](CustomLayoutView.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getRootModalHost`](CustomLayoutView.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredState`](CustomLayoutView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredWidth`](CustomLayoutView.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getNativeWindow`](CustomLayoutView.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_isStyleScopeHost`](GridLayout.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`GridLayout`](GridLayout.md).[`_nativeWindow`](GridLayout.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityIgnoresInvertColors`](GridLayout.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`automationText`](GridLayout.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`GridLayout`](GridLayout.md).[`cssClasses`](GridLayout.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`GridLayout`](GridLayout.md).[`cssPseudoClasses`](GridLayout.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveBorderTopWidth`](GridLayout.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveColumnGap`](GridLayout.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMarginTop`](GridLayout.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMaxHeight`](GridLayout.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMaxWidth`](GridLayout.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMinWidth`](GridLayout.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveRowGap`](GridLayout.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`ignoreTouchAnimation`](GridLayout.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`marginTop`](GridLayout.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`maxHeight`](GridLayout.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`maxWidth`](GridLayout.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`minWidth`](GridLayout.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`touchAnimation`](GridLayout.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`GridLayout`](GridLayout.md).[`androidOverflowInsetEvent`](GridLayout.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`GridLayout`](GridLayout.md).[`closedModallyEvent`](GridLayout.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`_getNativeViewsCount`](GridLayout.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`GridLayout`](GridLayout.md).[`_getRootModalHost`](GridLayout.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getMeasuredState`](GridLayout.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getMeasuredWidth`](GridLayout.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`GridLayout`](GridLayout.md).[`getNativeWindow`](GridLayout.md#getnativewindow) *** ### getRows() ```ts getRows(): ItemSpec[]; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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.1.0-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.1.0-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.1.0-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.1.0-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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_isStyleScopeHost`](ContentView.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`ContentView`](ContentView.md).[`_nativeWindow`](ContentView.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityIgnoresInvertColors`](ContentView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`automationText`](ContentView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`ContentView`](ContentView.md).[`cssClasses`](ContentView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`ContentView`](ContentView.md).[`cssPseudoClasses`](ContentView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveBorderTopWidth`](ContentView.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveColumnGap`](ContentView.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMarginTop`](ContentView.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMaxHeight`](ContentView.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMaxWidth`](ContentView.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMinWidth`](ContentView.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveRowGap`](ContentView.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveWidth`](ContentView.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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) *** ### horizontalOffset ```ts horizontalOffset: number; ``` Defined in: [ui/scroll-view/index.d.ts:34](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L34) Gets a value that contains the horizontal offset of the scrolled content. *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`ignoreTouchAnimation`](ContentView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`iosAccessibilityMinFontScale`](ContentView.md#iosaccessibilityminfontscale) *** ### iosContentInsetAdjustmentBehavior ```ts iosContentInsetAdjustmentBehavior: "always" | "never" | "automatic" | "scrollableAxes"; ``` Defined in: [ui/scroll-view/index.d.ts:83](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L83) iOS-only. Maps to `UIScrollView.contentInsetAdjustmentBehavior`. * `never` (default): NativeScript subtracts safe-area insets manually. * `automatic` / `scrollableAxes` / `always`: iOS manages insets — recommended with large titles to avoid scroll drift. #### Ns Property *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) Gets if layout is valid. This is a read-only property. #### Inherited from [`ContentView`](ContentView.md).[`isLayoutValid`](ContentView.md#islayoutvalid) *** ### isScrollEnabled ```ts isScrollEnabled: boolean; ``` Defined in: [ui/scroll-view/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L24) Gets or sets a value indicating whether scroll is enabled. #### Ns Property *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`marginTop`](ContentView.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`maxHeight`](ContentView.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`maxWidth`](ContentView.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`minWidth`](ContentView.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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) *** ### orientation ```ts orientation: OrientationType; ``` Defined in: [ui/scroll-view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L72) Gets or sets direction in which the content can be scrolled. #### Ns Property *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`scaleY`](ContentView.md#scaley) *** ### scrollableHeight ```ts scrollableHeight: number; ``` Defined in: [ui/scroll-view/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L39) Gets the maximum value for the verticalOffset. *** ### scrollableWidth ```ts scrollableWidth: number; ``` Defined in: [ui/scroll-view/index.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L44) Gets the maximum value for the horizontalOffset. *** ### scrollBarIndicatorVisible ```ts scrollBarIndicatorVisible: boolean; ``` Defined in: [ui/scroll-view/index.d.ts:51](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L51) Toggles scrollbar indicator visibility #### Ns Property *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`touchAnimation`](ContentView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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) *** ### verticalOffset ```ts verticalOffset: number; ``` Defined in: [ui/scroll-view/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L29) Gets a value that contains the vertical offset of the scrolled content. *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`ContentView`](ContentView.md).[`androidOverflowInsetEvent`](ContentView.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`ContentView`](ContentView.md).[`closedModallyEvent`](ContentView.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### scrollEvent ```ts static scrollEvent: string; ``` Defined in: [ui/scroll-view/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L17) String value used when hooking to scroll event. #### Ns Event scroll *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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 ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/content-view/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` #### Inherited from [`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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`_getNativeViewsCount`](ContentView.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`ContentView`](ContentView.md).[`_getRootModalHost`](ContentView.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_onDetachedFromWindow`](ContentView.md#ondetachedfromwindow) *** ### \_onOrientationChanged() ```ts _onOrientationChanged(): void; ``` Defined in: [ui/scroll-view/index.d.ts:102](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L102) #### Returns `void` *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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(): void; ``` Defined in: [ui/core/view/index.d.ts:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) Announce screen changed #### Returns `void` #### Inherited from [`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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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 [`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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`ContentView`](ContentView.md).[`getGestureObservers`](ContentView.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`getMeasuredState`](ContentView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`getMeasuredWidth`](ContentView.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`ContentView`](ContentView.md).[`getNativeWindow`](ContentView.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/scroll-view/index.d.ts:95](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L95) 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 [`ContentView`](ContentView.md).[`on`](ContentView.md#on) #### Call Signature ```ts on( eventName: "scroll", callback: (data: ScrollEventData) => void, thisArg?: any): void; ``` Defined in: [ui/scroll-view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L100) Raised when a scroll event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `"scroll"` | | `callback` | (`data`: [`ScrollEventData`](../interfaces/ScrollEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`ContentView`](ContentView.md).[`on`](ContentView.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### scrollToHorizontalOffset() ```ts scrollToHorizontalOffset(value: number, animated: boolean): any; ``` Defined in: [ui/scroll-view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L65) Scrolls the content the specified horizontal offset position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `number` | The offset value | | `animated` | `boolean` | true for animated scroll, false for immediate scroll. | #### Returns `any` *** ### scrollToVerticalOffset() ```ts scrollToVerticalOffset(value: number, animated: boolean): any; ``` Defined in: [ui/scroll-view/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L58) Scrolls the content the specified vertical offset position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `number` | The offset value | | `animated` | `boolean` | true for animated scroll, false for immediate scroll. | #### Returns `any` *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/SearchBar.md' description: Represents a search bar component. --- Defined in: [ui/search-bar/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L11) Represents a search bar component. ## Ns View SearchBar ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new SearchBar(): SearchBar; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `SearchBar` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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/search-bar/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L29) Gets the native [android widget](http://developer.android.com/reference/android/widget/SearchView.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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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) *** ### clearButtonColor ```ts clearButtonColor: string | Color; ``` Defined in: [ui/search-bar/index.d.ts:69](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L69) Gets or sets the Clear Button color of the SearchBar component. #### Ns Property *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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) *** ### hint ```ts hint: string; ``` Defined in: [ui/search-bar/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L48) Gets or sets the text of the search bar text field hint/placeholder. #### Ns Property *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/search-bar/index.d.ts:34](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L34) Gets the native iOS [UISearchBar](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISearchBar_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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### text ```ts text: string; ``` Defined in: [ui/search-bar/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L41) Gets or sets a search bar text. #### Ns Property *** ### textFieldBackgroundColor ```ts textFieldBackgroundColor: Color; ``` Defined in: [ui/search-bar/index.d.ts:55](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L55) Gets or sets the TextField background color of the SearchBar component. #### Ns Property *** ### textFieldHintColor ```ts textFieldHintColor: Color; ``` Defined in: [ui/search-bar/index.d.ts:62](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L62) Gets or sets the TextField Hint color of the SearchBar component. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### clearEvent ```ts static clearEvent: string; ``` Defined in: [ui/search-bar/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L24) String value used when hooking to clear event. #### Ns Event submit *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### submitEvent ```ts static submitEvent: string; ``` Defined in: [ui/search-bar/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L17) String value used when hooking to submit event. #### Ns Event submit *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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) *** ### dismissSoftInput() ```ts dismissSoftInput(): void; ``` Defined in: [ui/search-bar/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L96) Hides the soft input method, usually a soft keyboard. #### Returns `void` *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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/search-bar/index.d.ts:81](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L81) 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: "submit", callback: (args: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/search-bar/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L86) Raised when a search bar search is submitted. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"submit"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "close", callback: (args: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/search-bar/index.d.ts:91](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/search-bar/index.d.ts#L91) Raised when a search bar search is closed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"close"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/SegmentedBar.md' description: Represents a UI SegmentedBar component. --- Defined in: [ui/segmented-bar/index.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L42) Represents a UI SegmentedBar component. ## Ns View SegmentedBar ## Extends * [`View`](View.md) ## Implements * [`AddChildFromBuilder`](../interfaces/AddChildFromBuilder.md) * [`AddArrayFromBuilder`](../interfaces/AddArrayFromBuilder.md) ## Constructors ### Constructor ```ts new SegmentedBar(): SegmentedBar; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `SegmentedBar` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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: SegmentedBarItem[]; ``` Defined in: [ui/segmented-bar/index.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L76) Gets or sets the items of the SegmentedBar. #### Ns Property *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### selectedBackgroundColor ```ts selectedBackgroundColor: Color; ``` Defined in: [ui/segmented-bar/index.d.ts:62](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L62) Gets or sets the selected background color of the SegmentedBar component. #### Ns Property *** ### selectedIndex ```ts selectedIndex: number; ``` Defined in: [ui/segmented-bar/index.d.ts:55](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L55) Gets or sets the selected index of the SegmentedBar component. #### Ns Property *** ### selectedTextColor ```ts selectedTextColor: Color; ``` Defined in: [ui/segmented-bar/index.d.ts:69](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L69) Gets or sets the selected text color of the SegmentedBar component. #### Ns Property *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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) *** ### selectedIndexChangedEvent ```ts static selectedIndexChangedEvent: any; ``` Defined in: [ui/segmented-bar/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L48) String value used when hooking to the selectedIndexChanged event. #### Ns Event selectedIndexChanged *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addArrayFromBuilder() ```ts _addArrayFromBuilder(name: string, value: any[]): void; ``` Defined in: [ui/segmented-bar/index.d.ts:101](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L101) A function that is called when an array declaration is found in xml. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the array. | | `value` | `any`\[] | The actual value of the array. | #### Returns `void` #### Implementation of [`AddArrayFromBuilder`](../interfaces/AddArrayFromBuilder.md).[`_addArrayFromBuilder`](../interfaces/AddArrayFromBuilder.md#_addarrayfrombuilder) *** ### \_addChildFromBuilder() ```ts _addChildFromBuilder(name: string, value: any): void; ``` Defined in: [ui/segmented-bar/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L100) Called for every child element declared in xml. #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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/segmented-bar/index.d.ts:88](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L88) 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: "selectedIndexChanged", callback: (args: SelectedIndexChangedEventData) => void, thisArg?: any): void; ``` Defined in: [ui/segmented-bar/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L93) Raised when the selected index changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"selectedIndexChanged"` | | `callback` | (`args`: [`SelectedIndexChangedEventData`](../interfaces/SelectedIndexChangedEventData.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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/SegmentedBarItem.md' description: Represents a SegmentedBar item. --- Defined in: [ui/segmented-bar/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L13) Represents a SegmentedBar item. ## Ns View SegmentedBarItem ## Extends * [`ViewBase`](ViewBase.md) ## Constructors ### Constructor ```ts new SegmentedBarItem(): SegmentedBarItem; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `SegmentedBarItem` #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderTopWidth`](ViewBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveColumnGap`](ViewBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginTop`](ViewBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxHeight`](ViewBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxWidth`](ViewBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMinWidth`](ViewBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveRowGap`](ViewBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### title ```ts title: string; ``` Defined in: [ui/segmented-bar/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L19) Gets or sets the title of the SegmentedBarItem. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### cssType #### Get Signature ```ts get cssType(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the CSS fully qualified type name used for selector matching. ##### Returns `string` #### Set Signature ```ts set cssType(value: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`cssType`](ViewBase.md#csstype) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/SharedTransition.md' description: >- Shared Element Transitions (preview) Allows you to auto animate between shared elements on two different screesn to create smooth navigational experiences. V... --- Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) 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. ## Constructors ### Constructor ```ts new SharedTransition(): SharedTransition; ``` #### Returns `SharedTransition` ## Properties ### DEBUG ```ts static DEBUG: boolean; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Enable to see various console logging output of Shared Element Transition behavior. *** ### finishedEvent ```ts static finishedEvent: string; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) When the transition finishes. *** ### inProgress ```ts static inProgress: boolean; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Whether a transition is in progress or not. Note: used internally however exposed in case custom state ordering is needed. Updated when transitions start/end/cancel. *** ### interactiveCancelledEvent ```ts static interactiveCancelledEvent: string; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) When the interactive transition cancels. *** ### interactiveUpdateEvent ```ts static interactiveUpdateEvent: string; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) When the interactive transition updates with the percent value. *** ### startedEvent ```ts static startedEvent: string; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) When the transition starts. ## Methods ### custom() ```ts static custom(transition: Transition, options?: SharedTransitionConfig): { instance: Transition; }; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Configure a custom transition with presentation/dismissal options. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `transition` | [`Transition`](Transition.md) | The custom Transition instance. | | `options?` | [`SharedTransitionConfig`](../interfaces/SharedTransitionConfig.md) | - | #### Returns ```ts { instance: Transition; } ``` a configured SharedTransition instance for use with navigational APIs. ##### instance ```ts instance: Transition; ``` *** ### events() ```ts static events(): SharedTransitionObservable; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Listen to various shared element transition events. #### Returns `SharedTransitionObservable` Observable *** ### finishState() ```ts static finishState(id: number): void; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Finish transition state. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `id` | `number` | Transition instance id | #### Returns `void` *** ### getSharedElements() ```ts static getSharedElements(fromPage: ViewBase, toPage: ViewBase): { presented: View[]; presenting: View[]; sharedElements: View[]; }; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Gather view collections based on sharedTransitionTag details. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `fromPage` | [`ViewBase`](ViewBase.md) | Page moving away from | | `toPage` | [`ViewBase`](ViewBase.md) | Page moving to | #### Returns ```ts { presented: View[]; presenting: View[]; sharedElements: View[]; } ``` Collections of views pertaining to shared elements or particular pages ##### presented ```ts presented: View[]; ``` ##### presenting ```ts presenting: View[]; ``` ##### sharedElements ```ts sharedElements: View[]; ``` *** ### getState() ```ts static getState(id: number): SharedTransitionState; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Get current state for any transition. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `id` | `number` | Transition instance id | #### Returns `SharedTransitionState` *** ### notifyEvent() ```ts static notifyEvent(eventName: string, data: SharedTransitionEventDataPayload): void; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Notify a Shared Transition event. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Shared Transition event name | | `data` | `SharedTransitionEventDataPayload` | - | #### Returns `void` *** ### registerExternalRoot() ```ts static registerExternalRoot(root: ViewBase): void; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Register an NS view subtree that should be searched for sharedTransitionTag elements in addition to the source page. Use this for views that are attached to the native UI but aren't reachable from the page via the NS view tree — for example, a TabView's `iosBottomAccessory`. The root and any of its descendants with a `sharedTransitionTag` will then participate in transitions originating from any page. Registration is idempotent. Pair with `unregisterExternalRoot` on teardown to avoid leaking detached views into future transitions. #### Parameters | Parameter | Type | | ------ | ------ | | `root` | [`ViewBase`](ViewBase.md) | #### Returns `void` *** ### unregisterExternalRoot() ```ts static unregisterExternalRoot(root: ViewBase): void; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Remove a previously registered external root. No-op if the root wasn't registered. #### Parameters | Parameter | Type | | ------ | ------ | | `root` | [`ViewBase`](ViewBase.md) | #### Returns `void` *** ### updateState() ```ts static updateState(id: number, state: SharedTransitionState): void; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Update transition state. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `id` | `number` | Transition instance id | | `state` | `SharedTransitionState` | SharedTransitionState | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/SharedTransitionHelper.md' description: >- Platform helper to aid in creating your own custom Shared Element Transition classes. (iOS Only) --- Defined in: [ui/transition/shared-transition-helper.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition-helper.d.ts#L8) Platform helper to aid in creating your own custom Shared Element Transition classes. (iOS Only) ## Constructors ### Constructor ```ts new SharedTransitionHelper(): SharedTransitionHelper; ``` #### Returns `SharedTransitionHelper` ## Methods ### animate() ```ts static animate( state: SharedTransitionState, transitionContext: any, type: TransitionNavigationType): void; ``` Defined in: [ui/transition/shared-transition-helper.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition-helper.d.ts#L9) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `SharedTransitionState` | | `transitionContext` | `any` | | `type` | `TransitionNavigationType` | #### Returns `void` *** ### interactiveCancel() ```ts static interactiveCancel( state: SharedTransitionState, interactiveState: TransitionInteractiveState, type: TransitionNavigationType): void; ``` Defined in: [ui/transition/shared-transition-helper.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition-helper.d.ts#L12) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `SharedTransitionState` | | `interactiveState` | `TransitionInteractiveState` | | `type` | `TransitionNavigationType` | #### Returns `void` *** ### interactiveFinish() ```ts static interactiveFinish( state: SharedTransitionState, interactiveState: TransitionInteractiveState, type: TransitionNavigationType): void; ``` Defined in: [ui/transition/shared-transition-helper.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition-helper.d.ts#L13) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `SharedTransitionState` | | `interactiveState` | `TransitionInteractiveState` | | `type` | `TransitionNavigationType` | #### Returns `void` *** ### interactiveStart() ```ts static interactiveStart( state: SharedTransitionState, interactiveState: TransitionInteractiveState, type: TransitionNavigationType): void; ``` Defined in: [ui/transition/shared-transition-helper.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition-helper.d.ts#L10) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `SharedTransitionState` | | `interactiveState` | `TransitionInteractiveState` | | `type` | `TransitionNavigationType` | #### Returns `void` *** ### interactiveUpdate() ```ts static interactiveUpdate( state: SharedTransitionState, interactiveState: TransitionInteractiveState, type: TransitionNavigationType, percent: number): void; ``` Defined in: [ui/transition/shared-transition-helper.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition-helper.d.ts#L11) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `SharedTransitionState` | | `interactiveState` | `TransitionInteractiveState` | | `type` | `TransitionNavigationType` | | `percent` | `number` | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/ShorthandProperty.md' --- Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) ## Type Parameters | Type Parameter | | ------ | | `T` *extends* [`Style`](Style.md) | | `P` | ## Implements * `ShorthandProperty`<`T`, `P`> ## Constructors ### Constructor ```ts new ShorthandProperty(options: ShorthandPropertyOptions

): ShorthandProperty; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `ShorthandPropertyOptions`<`P`> | #### Returns `ShorthandProperty`<`T`, `P`> ## Properties ### cssLocalName ```ts readonly cssLocalName: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts ShorthandProperty.cssLocalName ``` *** ### cssName ```ts readonly cssName: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts ShorthandProperty.cssName ``` *** ### cssValueDescriptor ```ts protected readonly cssValueDescriptor: PropertyDescriptor; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts ShorthandProperty.cssValueDescriptor ``` *** ### key ```ts readonly key: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts ShorthandProperty.key ``` *** ### localValueDescriptor ```ts protected readonly localValueDescriptor: PropertyDescriptor; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts ShorthandProperty.localValueDescriptor ``` *** ### name ```ts readonly name: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts ShorthandProperty.name ``` *** ### sourceKey ```ts readonly sourceKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts ShorthandProperty.sourceKey ``` ## Methods ### register() ```ts register(cls: typeof Style): void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cls` | *typeof* [`Style`](Style.md) | #### Returns `void` #### Implementation of ```ts ShorthandProperty.register ``` --- --- url: 'https://docs.nativescript.org/api/classes/Slider.md' description: Represents a slider component. --- Defined in: [ui/slider/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L11) Represents a slider component. ## Ns View Slider ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new Slider(): Slider; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `Slider` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityStep ```ts accessibilityStep: number; ``` Defined in: [ui/slider/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L68) Increase/Decrease step size for iOS Increment-/Decrement events #### Ns Property *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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/slider/index.d.ts:35](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L35) Gets the native [android widget](http://developer.android.com/reference/android/widget/SeekBar.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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/slider/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L40) Gets the native iOS [UISlider](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISlider_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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxValue ```ts maxValue: number; ``` Defined in: [ui/slider/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L61) Gets or sets a slider max value. The default value is 100. #### Ns Property *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minValue ```ts minValue: number; ``` Defined in: [ui/slider/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L54) Gets or sets a slider min value. The default value is 0. #### Ns Property *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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/slider/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L47) Gets or sets a slider current value. The default value is 0. #### Ns Property *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityDecrementEvent ```ts readonly static accessibilityDecrementEvent: "accessibilityDecrement" = 'accessibilityDecrement'; ``` Defined in: [ui/slider/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L23) String value used when hooking to accessibilityDecrement event. #### Ns Event accessibilityDecrement *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityIncrementEvent ```ts readonly static accessibilityIncrementEvent: "accessibilityIncrement" = 'accessibilityIncrement'; ``` Defined in: [ui/slider/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L30) String value used when hooking to accessibilityIncrement event. #### Ns Event accessibilityIncrement *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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/slider/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L17) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/SlideTransition.md' --- Defined in: [ui/transition/slide-transition.d.ts:3](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/slide-transition.d.ts#L3) ## Extends * [`Transition`](Transition.md) ## Constructors ### Constructor ```ts new SlideTransition( direction: string, duration?: number, nativeCurve?: any): SlideTransition; ``` Defined in: [ui/transition/slide-transition.d.ts:4](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/slide-transition.d.ts#L4) #### Parameters | Parameter | Type | | ------ | ------ | | `direction` | `string` | | `duration?` | `number` | | `nativeCurve?` | `any` | #### Returns `SlideTransition` #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/transition/index.d.ts#L31) #### Inherited from [`Transition`](Transition.md).[`presenting`](Transition.md#presenting) *** ### sharedElements? ```ts optional sharedElements?: { _allPresentingViews?: View[]; independent?: SharedElementSettings & { isPresented?: boolean; }[]; presented?: SharedElementSettings[]; presenting?: SharedElementSettings[]; }; ``` Defined in: [ui/transition/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L32) #### \_allPresentingViews? ```ts optional _allPresentingViews?: View[]; ``` #### 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.1.0-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:39](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L39) #### 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:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L59) #### 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:44](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L44) #### 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:45](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L45) #### 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:43](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L43) #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`getCurve`](Transition.md#getcurve) *** ### getDuration() ```ts getDuration(): number; ``` Defined in: [ui/transition/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L41) #### 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:49](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L49) #### 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:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L53) #### 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:55](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L55) #### 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:57](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L57) #### 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:51](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L51) #### 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:42](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L42) #### 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:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L47) #### 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/Span.md' description: >- A class used to create a single part of formatted string with a common text properties. --- Defined in: [ui/text-base/span.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L12) A class used to create a single part of formatted string with a common text properties. ## Ns View Span ## Extends * [`ViewBase`](ViewBase.md) ## Constructors ### Constructor ```ts new Span(): Span; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `Span` #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/span.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L76) Gets or sets the font background color of the span. #### Ns Property *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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/span.d.ts:69](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L69) Gets or sets the font foreground color of the span. #### Ns Property *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderTopWidth`](ViewBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveColumnGap`](ViewBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginTop`](ViewBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxHeight`](ViewBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxWidth`](ViewBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMinWidth`](ViewBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveRowGap`](ViewBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/span.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L27) Gets or sets the font family of the span. #### Ns Property *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/text-base/span.d.ts:34](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L34) Gets or sets the font size of the span. #### Ns Property *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/text-base/span.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L41) Gets or sets the font style of the span. #### Ns Property *** ### fontVariationSettings ```ts fontVariationSettings: FontVariationSettingsType[]; ``` Defined in: [ui/text-base/span.d.ts:55](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L55) Gets or sets the font variation settings of the span. #### Ns Property *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/text-base/span.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L48) Gets or sets the font weight of the span. #### Ns Property *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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/span.d.ts:83](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L83) Defines whether accessibility font scale should affect font size. #### Ns Property *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/text-base/span.d.ts:97](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L97) Gets or sets the maximum accessibility font scale. #### Ns Property *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/text-base/span.d.ts:90](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L90) 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.1.0-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.1.0-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) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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: FormattedString; ``` Defined in: [ui/text-base/span.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L20) Gets the parent view. This property is read-only. #### Overrides [`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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### tappable ```ts readonly tappable: boolean; ``` Defined in: [ui/text-base/span.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L111) Gets if the span is tappable or not. #### Ns Property *** ### text ```ts text: string; ``` Defined in: [ui/text-base/span.d.ts:104](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L104) Gets or sets the text for the span. #### Ns Property *** ### textDecoration ```ts textDecoration: TextDecorationType; ``` Defined in: [ui/text-base/span.d.ts:62](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L62) Gets or sets text decorations for the span. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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) *** ### linkTapEvent ```ts static linkTapEvent: string; ``` Defined in: [ui/text-base/span.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/span.d.ts#L18) String value used when hooking to linkTap event. #### Ns Event linkTap *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### cssType #### Get Signature ```ts get cssType(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the CSS fully qualified type name used for selector matching. ##### Returns `string` #### Set Signature ```ts set cssType(value: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`cssType`](ViewBase.md#csstype) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/SplitView.md' description: >- iOS UISplitViewController-backed container. On Android, acts as a simple container. --- Defined in: [ui/split-view/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/index.d.ts#L16) iOS UISplitViewController-backed container. On Android, acts as a simple container. ## Ns View SplitView ## Extends * `SplitViewBase` ## Constructors ### Constructor ```ts new SplitView(): SplitView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `SplitView` #### Inherited from ```ts SplitViewBase.constructor ``` ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from ```ts SplitViewBase._androidContentDescriptionUpdated ``` *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._automaticallyAdjustsScrollViewInsets ``` *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts SplitViewBase._closeModalCallback ``` *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._context ``` *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._cssState ``` *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._defaultPaddingBottom ``` *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._defaultPaddingLeft ``` *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._defaultPaddingRight ``` *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._defaultPaddingTop ``` *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._domId ``` *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._ignoreFlexMinWidthHeightReset ``` *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._isAddedToNativeVisualTree ``` *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._isPaddingRelative ``` *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._isStyleScopeHost ``` *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from ```ts SplitViewBase._nativeWindow ``` *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._oldBottom ``` *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._oldLeft ``` *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._oldRight ``` *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._oldTop ``` *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase._styleScope ``` *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._suspendNativeUpdatesCount ``` *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) Hide the view and its children from the a11y service #### Ns Property #### Inherited from ```ts SplitViewBase.accessibilityHidden ``` *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from ```ts SplitViewBase.accessibilityHint ``` *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from ```ts SplitViewBase.accessibilityIdentifier ``` *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from ```ts SplitViewBase.accessibilityIgnoresInvertColors ``` *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) Short description of the element, ideally one word. #### Ns Property #### Inherited from ```ts SplitViewBase.accessibilityLabel ``` *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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 SplitViewBase.accessibilityLanguage ``` *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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 SplitViewBase.accessibilityLiveRegion ``` *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from ```ts SplitViewBase.accessibilityMediaSession ``` *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from ```ts SplitViewBase.accessibilityRole ``` *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from ```ts SplitViewBase.accessibilityState ``` *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) Current value of the element in a localized string. #### Ns Property #### Inherited from ```ts SplitViewBase.accessibilityValue ``` *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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 SplitViewBase.accessible ``` *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from ```ts SplitViewBase.alignSelf ``` *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from ```ts SplitViewBase.android ``` *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from ```ts SplitViewBase.androidDynamicElevationOffset ``` *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from ```ts SplitViewBase.androidElevation ``` *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts SplitViewBase.androidOverflowEdge ``` *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from ```ts SplitViewBase.automationText ``` *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) Gets or sets the background style property. #### Ns Property #### Inherited from ```ts SplitViewBase.background ``` *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) Gets or sets the background color of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.backgroundColor ``` *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) Gets or sets the background image of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.backgroundImage ``` *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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 SplitViewBase.bindingContext ``` *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderBottomColor ``` *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderBottomLeftRadius ``` *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderBottomRightRadius ``` *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderBottomWidth ``` *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) Gets or sets the border color of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderColor ``` *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) Gets or sets the left border color of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderLeftColor ``` *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) Gets or sets the left border width of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderLeftWidth ``` *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) Gets or sets the border radius of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderRadius ``` *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) Gets or sets the right border color of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderRightColor ``` *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) Gets or sets the right border width of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderRightWidth ``` *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) Gets or sets the top border color of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderTopColor ``` *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderTopLeftRadius ``` *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderTopRightRadius ``` *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) Gets or sets the top border width of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderTopWidth ``` *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) Gets or sets the border width of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.borderWidth ``` *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.boxShadow ``` *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from ```ts SplitViewBase.className ``` *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.clipToBounds ``` *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.col ``` *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) Gets or sets the color of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.color ``` *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from ```ts SplitViewBase.colSpan ``` *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.column ``` *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from ```ts SplitViewBase.columnSpan ``` *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from ```ts SplitViewBase.cssClasses ``` *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from ```ts SplitViewBase.cssPseudoClasses ``` *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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 SplitViewBase.cssType ``` *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from ```ts SplitViewBase.defaultVisualState ``` *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.direction ``` *** ### displayMode ```ts displayMode: SplitDisplayMode; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Preferred display mode #### Inherited from ```ts SplitViewBase.displayMode ``` *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from ```ts SplitViewBase.dock ``` *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.domNode ``` *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveBorderBottomWidth ``` *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveBorderLeftWidth ``` *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveBorderRightWidth ``` *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveBorderTopWidth ``` *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveColumnGap ``` *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveHeight ``` *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveLeft ``` *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveMarginBottom ``` *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveMarginLeft ``` *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveMarginRight ``` *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveMarginTop ``` *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveMaxHeight ``` *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveMaxWidth ``` *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveMinHeight ``` *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveMinWidth ``` *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveRowGap ``` *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveTop ``` *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.effectiveWidth ``` *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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 SplitViewBase.flex ``` *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from ```ts SplitViewBase.flexFlow ``` *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.flexGrow ``` *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.flexShrink ``` *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.flexWrapBefore ``` *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) Gets or sets the desired height of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.height ``` *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.hidden ``` *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from ```ts SplitViewBase.horizontalAlignment ``` *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from ```ts SplitViewBase.id ``` *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from ```ts SplitViewBase.ignoreTouchAnimation ``` *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from ```ts SplitViewBase.ios ``` *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from ```ts SplitViewBase.iosAccessibilityAdjustsFontSize ``` *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from ```ts SplitViewBase.iosAccessibilityMaxFontScale ``` *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from ```ts SplitViewBase.iosAccessibilityMinFontScale ``` *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from ```ts SplitViewBase.iosGlassEffect ``` *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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 SplitViewBase.iosIgnoreSafeArea ``` *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from ```ts SplitViewBase.iosOverflowSafeArea ``` *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from ```ts SplitViewBase.iosOverflowSafeAreaEnabled ``` *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.isCollapsed ``` *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.isEnabled ``` *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) Gets if layout is valid. This is a read-only property. #### Inherited from ```ts SplitViewBase.isLayoutValid ``` *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.isPassThroughParentEnabled ``` *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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 SplitViewBase.isUserInteractionEnabled ``` *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.left ``` *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) Gets or sets margin style property. #### Ns Property #### Inherited from ```ts SplitViewBase.margin ``` *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from ```ts SplitViewBase.marginBottom ``` *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from ```ts SplitViewBase.marginLeft ``` *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from ```ts SplitViewBase.marginRight ``` *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from ```ts SplitViewBase.marginTop ``` *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from ```ts SplitViewBase.maxHeight ``` *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from ```ts SplitViewBase.maxWidth ``` *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from ```ts SplitViewBase.minHeight ``` *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from ```ts SplitViewBase.minWidth ``` *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from ```ts SplitViewBase.modal ``` *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) Native background states. This is a read-only property. #### Inherited from ```ts SplitViewBase.nativeBackgroundState ``` *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.nativeViewProtected ``` *** ### navigationBarTintColor ```ts navigationBarTintColor: Color; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Navigation bar tint color for buttons #### Inherited from ```ts SplitViewBase.navigationBarTintColor ``` *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) Gets or sets the opacity style property. #### Ns Property #### Inherited from ```ts SplitViewBase.opacity ``` *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.order ``` *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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 SplitViewBase.originX ``` *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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 SplitViewBase.originY ``` *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property #### Inherited from ```ts SplitViewBase.padding ``` *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property #### Inherited from ```ts SplitViewBase.paddingBottom ``` *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property #### Inherited from ```ts SplitViewBase.paddingLeft ``` *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property #### Inherited from ```ts SplitViewBase.paddingRight ``` *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property #### Inherited from ```ts SplitViewBase.paddingTop ``` *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from ```ts SplitViewBase.parent ``` *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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 SplitViewBase.perspective ``` *** ### preferredInspectorColumnWidthFraction ```ts preferredInspectorColumnWidthFraction: number; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Inspector column width fraction (0..1, iOS 17+/18+ when Inspector column available) #### Inherited from ```ts SplitViewBase.preferredInspectorColumnWidthFraction ``` *** ### preferredPrimaryColumnWidthFraction ```ts preferredPrimaryColumnWidthFraction: number; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Primary column width fraction (0..1) #### Inherited from ```ts SplitViewBase.preferredPrimaryColumnWidthFraction ``` *** ### preferredSupplementaryColumnWidthFraction ```ts preferredSupplementaryColumnWidthFraction: number; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Supplementary column width fraction (0..1, iOS 14+ triple) #### Inherited from ```ts SplitViewBase.preferredSupplementaryColumnWidthFraction ``` *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts SplitViewBase.recycleNativeView ``` *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.reusable ``` *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from ```ts SplitViewBase.rotate ``` *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from ```ts SplitViewBase.rotateX ``` *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from ```ts SplitViewBase.rotateY ``` *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.row ``` *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from ```ts SplitViewBase.rowSpan ``` *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.scaleX ``` *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.scaleY ``` *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from ```ts SplitViewBase.sharedTransitionIgnore ``` *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.sharedTransitionTag ``` *** ### splitBehavior ```ts splitBehavior: SplitBehavior; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Preferred split behavior (iOS 14+) #### Inherited from ```ts SplitViewBase.splitBehavior ``` *** ### splitRole ```ts splitRole: SplitRole; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Child role (primary, secondary, supplementary, inspector) #### Inherited from ```ts SplitViewBase.splitRole ``` *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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 SplitViewBase.statusBarStyle ``` *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### Ns Property #### Inherited from ```ts SplitViewBase.testID ``` *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.top ``` *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from ```ts SplitViewBase.touchAnimation ``` *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### Ns Property #### Inherited from ```ts SplitViewBase.touchDelay ``` *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from ```ts SplitViewBase.transitionId ``` *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from ```ts SplitViewBase.translateX ``` *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from ```ts SplitViewBase.translateY ``` *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from ```ts SplitViewBase.verticalAlignment ``` *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from ```ts SplitViewBase.viewController ``` *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) Gets or sets the visibility of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.visibility ``` *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) visionOS only #### Ns Property #### Inherited from ```ts SplitViewBase.visionHoverStyle ``` *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) visionOS only #### Ns Property #### Inherited from ```ts SplitViewBase.visionIgnoreHoverStyle ``` *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) Gets or sets the desired width of the view. #### Ns Property #### Inherited from ```ts SplitViewBase.width ``` *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from ```ts SplitViewBase.accessibilityBlurEvent ``` *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from ```ts SplitViewBase.accessibilityFocusChangedEvent ``` *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from ```ts SplitViewBase.accessibilityFocusEvent ``` *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts SplitViewBase.accessibilityPerformEscapeEvent ``` *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from ```ts SplitViewBase.androidOverflowInsetEvent ``` *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from ```ts SplitViewBase.closedModallyEvent ``` *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from ```ts SplitViewBase.createdEvent ``` *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from ```ts SplitViewBase.disposeNativeViewEvent ``` *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from ```ts SplitViewBase.layoutChangedEvent ``` *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from ```ts SplitViewBase.loadedEvent ``` *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from ```ts SplitViewBase.propertyChangeEvent ``` *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from ```ts SplitViewBase.showingModallyEvent ``` *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from ```ts SplitViewBase.shownModallyEvent ``` *** ### SplitStyle ```ts static SplitStyle: SplitStyle; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) The display style for the split view controller. Must be set before bootstrapping the app. #### Inherited from ```ts SplitViewBase.SplitStyle ``` *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from ```ts SplitViewBase.unloadedEvent ``` ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts SplitViewBase.backgroundPosition ``` *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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 SplitViewBase.backgroundRepeat ``` *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts SplitViewBase.backgroundSize ``` *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from ```ts SplitViewBase.class ``` *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts SplitViewBase.effectivePaddingBottom ``` *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts SplitViewBase.effectivePaddingLeft ``` *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts SplitViewBase.effectivePaddingRight ``` *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts SplitViewBase.effectivePaddingTop ``` *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from ```ts SplitViewBase.isLoaded ``` *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from ```ts SplitViewBase.nativeView ``` *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.page ``` *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from ```ts SplitViewBase.parentNode ``` *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from ```ts SplitViewBase.style ``` *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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 SplitViewBase.textTransform ``` *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.typeName ``` *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from ```ts SplitViewBase.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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from ```ts SplitViewBase._addView ``` *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._addViewCore ``` *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._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.1.0-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 SplitViewBase._applyGlassEffect ``` *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._applyXmlAttribute ``` *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._batchUpdate ``` *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from ```ts SplitViewBase._childIndexToNativeChildIndex ``` *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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 SplitViewBase._closeAllModalViewsInternal ``` *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._createPropertyChangeData ``` *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._dialogClosed ``` *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from ```ts SplitViewBase._eachLayoutView ``` *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from ```ts SplitViewBase._emit ``` *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from ```ts SplitViewBase._getNativeViewsCount ``` *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from ```ts SplitViewBase._getRootModalHost ``` *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from ```ts SplitViewBase._getRootModalViews ``` *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from ```ts SplitViewBase._getValue ``` *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from ```ts SplitViewBase._handleLivesync ``` *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from ```ts SplitViewBase._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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from ```ts SplitViewBase._hideNativeModalView ``` *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts SplitViewBase._inheritStyles ``` *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from ```ts SplitViewBase._inheritStyleScope ``` *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase._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.1.0-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 SplitViewBase._observe ``` *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) Called in android when native view is attached to window. #### Returns `void` #### Inherited from ```ts SplitViewBase._onAttachedToWindow ``` *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from ```ts SplitViewBase._onDetachedFromWindow ``` *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._onRootViewReset ``` *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from ```ts SplitViewBase._onSizeChanged ``` *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts SplitViewBase._parentChanged ``` *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase._raiseLayoutChangedEvent ``` *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase._raiseShowingModallyEvent ``` *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase._raiseShownModallyEvent ``` *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._registerLayoutChild ``` *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._removeView ``` *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._removeViewCore ``` *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._removeViewFromNativeVisualTree ``` *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts SplitViewBase._resumeNativeUpdates ``` *** ### \_roleByIndex() ```ts protected _roleByIndex(index: number): SplitRole; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index` | `number` | #### Returns [`SplitRole`](../type-aliases/SplitRole.md) #### Inherited from ```ts SplitViewBase._roleByIndex ``` *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from ```ts SplitViewBase._setDefaultPaddings ``` *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from ```ts SplitViewBase._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.1.0-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 SplitViewBase._setupUI ``` *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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 SplitViewBase._setValue ``` *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from ```ts SplitViewBase._showNativeModalView ``` *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts SplitViewBase._suspendNativeUpdates ``` *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._tearDownUI ``` *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase._unregisterLayoutChild ``` *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from ```ts SplitViewBase._updateStyleScope ``` *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from ```ts SplitViewBase.accessibilityAnnouncement ``` *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) Announce screen changed #### Returns `void` #### Inherited from ```ts SplitViewBase.accessibilityScreenChanged ``` *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.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.1.0-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 SplitViewBase.addEventListener ``` *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.addPseudoClass ``` *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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 SplitViewBase.animate ``` *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from ```ts SplitViewBase.bind ``` *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.callLoaded ``` *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.callUnloaded ``` *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.closeModal ``` *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from ```ts SplitViewBase.createAnimation ``` *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.createNativeView ``` *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.deletePseudoClass ``` *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.destroyNode ``` *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from ```ts SplitViewBase.disposeNativeView ``` *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.eachChild ``` *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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 SplitViewBase.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.1.0-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 SplitViewBase.eachLayoutChild ``` *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from ```ts SplitViewBase.ensureDomNode ``` *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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 SplitViewBase.focus ``` *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from ```ts SplitViewBase.get ``` *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from ```ts SplitViewBase.getActualSize ``` *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.getChildAt ``` *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.getChildIndex ``` *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` #### Inherited from ```ts SplitViewBase.getChildrenCount ``` *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from ```ts SplitViewBase.getClosestWindow ``` *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from ```ts SplitViewBase.getEffectivePaddingShorthand ``` *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from ```ts SplitViewBase.getGestureObservers ``` *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from ```ts SplitViewBase.getLocationInWindow ``` *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from ```ts SplitViewBase.getLocationOnScreen ``` *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from ```ts SplitViewBase.getLocationRelativeTo ``` *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) Returns the raw height component. #### Returns `number` #### Inherited from ```ts SplitViewBase.getMeasuredHeight ``` *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from ```ts SplitViewBase.getMeasuredState ``` *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from ```ts SplitViewBase.getMeasuredWidth ``` *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from ```ts SplitViewBase.getNativeWindow ``` *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from ```ts SplitViewBase.getSafeAreaInsets ``` *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.getViewByDomId ``` *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.getViewById ``` *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from ```ts SplitViewBase.hasGestureObservers ``` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.hasListeners ``` *** ### hideInspector() ```ts hideInspector(): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.hideInspector ``` *** ### hidePrimary() ```ts hidePrimary(): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.hidePrimary ``` *** ### hideSecondary() ```ts hideSecondary(): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.hideSecondary ``` *** ### hideSupplementary() ```ts hideSupplementary(): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.hideSupplementary ``` *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from ```ts SplitViewBase.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.1.0-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 SplitViewBase.insertChild ``` *** ### invalidateChildLayouts() ```ts invalidateChildLayouts(delay?: number): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Invalidate layouts for all child views in the SplitView. Useful when columns change, orientation changes, or any scenario requiring a full layout refresh of all split view children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `delay?` | `number` | Optional delay in milliseconds (default 350ms to wait for animations) | #### Returns `void` #### Inherited from ```ts SplitViewBase.invalidateChildLayouts ``` *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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 SplitViewBase.layout ``` *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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 SplitViewBase.layoutNativeView ``` *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.loadView ``` *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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 SplitViewBase.measure ``` *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.notify ``` *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.notifyPropertyChange ``` *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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 SplitViewBase.off ``` *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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 SplitViewBase.on ``` #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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 SplitViewBase.on ``` #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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 SplitViewBase.on ``` #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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 SplitViewBase.on ``` #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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 SplitViewBase.on ``` #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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 SplitViewBase.on ``` #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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 SplitViewBase.on ``` *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from ```ts SplitViewBase.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.1.0-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 SplitViewBase.once ``` *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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 SplitViewBase.onLayout ``` *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.onLoaded ``` *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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 SplitViewBase.onMeasure ``` *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.onResumeNativeUpdates ``` *** ### onRoleChanged() ```ts onRoleChanged( view: View, oldValue: SplitRole, newValue: SplitRole): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `oldValue` | [`SplitRole`](../type-aliases/SplitRole.md) | | `newValue` | [`SplitRole`](../type-aliases/SplitRole.md) | #### Returns `void` #### Inherited from ```ts SplitViewBase.onRoleChanged ``` *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.onUnloaded ``` *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.removeChild ``` *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` #### Inherited from ```ts SplitViewBase.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.1.0-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 SplitViewBase.removeEventListener ``` *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.requestLayout ``` *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from ```ts SplitViewBase.resetNativeView ``` *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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 SplitViewBase.sendAccessibilityEvent ``` *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.set ``` *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from ```ts SplitViewBase.setAccessibilityIdentifier ``` *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from ```ts SplitViewBase.setInlineStyle ``` *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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 SplitViewBase.setMeasuredDimension ``` *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.setNativeView ``` *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) Android only to set the touch listener #### Returns `void` #### Inherited from ```ts SplitViewBase.setOnTouchListener ``` *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.setProperty ``` *** ### showInspector() ```ts showInspector(): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.showInspector ``` *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.showModal ``` *** ### showPrimary() ```ts showPrimary(): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.showPrimary ``` *** ### showSecondary() ```ts showSecondary(): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.showSecondary ``` *** ### showSupplementary() ```ts showSupplementary(): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Returns `void` #### Inherited from ```ts SplitViewBase.showSupplementary ``` *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from ```ts SplitViewBase.toString ``` *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from ```ts SplitViewBase.unbind ``` *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 SplitViewBase.unloadView ``` *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from ```ts SplitViewBase.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.1.0-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 SplitViewBase.addEventListener ``` *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from ```ts SplitViewBase.combineMeasuredStates ``` *** ### getInstance() ```ts static getInstance(): SplitViewBase; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) #### Returns `SplitViewBase` #### Inherited from ```ts SplitViewBase.getInstance ``` *** ### getRole() ```ts static getRole(element: SplitViewBase): SplitRole; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Get child role (primary, secondary, supplementary, inspector) #### Parameters | Parameter | Type | | ------ | ------ | | `element` | `SplitViewBase` | #### Returns [`SplitRole`](../type-aliases/SplitRole.md) #### Inherited from ```ts SplitViewBase.getRole ``` *** ### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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 SplitViewBase.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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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 SplitViewBase.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.1.0-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 SplitViewBase.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.1.0-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 SplitViewBase.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.1.0-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 SplitViewBase.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.1.0-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 SplitViewBase.removeEventListener ``` *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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 SplitViewBase.resolveSizeAndState ``` *** ### setRole() ```ts static setRole(element: SplitViewBase, value: SplitRole): void; ``` Defined in: [ui/split-view/split-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/split-view-common.ts) Set child role (primary, secondary, supplementary, inspector) #### Parameters | Parameter | Type | | ------ | ------ | | `element` | `SplitViewBase` | | `value` | [`SplitRole`](../type-aliases/SplitRole.md) | #### Returns `void` #### Inherited from ```ts SplitViewBase.setRole ``` --- --- url: 'https://docs.nativescript.org/api/classes/StackLayout.md' description: >- A Layout that arranges its children horizontally or vertically. The direction can be set by orientation property. --- Defined in: [ui/layouts/stack-layout/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/stack-layout/index.d.ts#L10) A Layout that arranges its children horizontally or vertically. The direction can be set by orientation property. ## Ns View StackLayout ## Extends * [`LayoutBase`](LayoutBase.md) ## Constructors ### Constructor ```ts new StackLayout(): StackLayout; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `StackLayout` #### Inherited from [`LayoutBase`](LayoutBase.md).[`constructor`](LayoutBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_nativeWindow`](LayoutBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveColumnGap`](LayoutBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxHeight`](LayoutBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxWidth`](LayoutBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveRowGap`](LayoutBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxHeight`](LayoutBase.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxWidth`](LayoutBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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) *** ### orientation ```ts orientation: OrientationType; ``` Defined in: [ui/layouts/stack-layout/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/stack-layout/index.d.ts#L16) Gets or sets if layout should be horizontal or vertical. The default value is vertical. #### Ns Property *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`closedModallyEvent`](LayoutBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalHost`](LayoutBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getNativeWindow`](LayoutBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/Style.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: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/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. ## Extends * [`Observable`](Observable.md) ## Constructors ### Constructor ```ts new Style(ownerView: ViewBase | WeakRef): Style; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `ownerView` | [`ViewBase`](ViewBase.md) | `WeakRef`<[`ViewBase`](ViewBase.md)> | #### Returns `Style` #### Overrides [`Observable`](Observable.md).[`constructor`](Observable.md#constructor) ## Properties ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### accessibilityStep ```ts accessibilityStep: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### alignContent ```ts alignContent: AlignContent; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### alignItems ```ts alignItems: AlignItems; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### androidContentInset ```ts androidContentInset: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### androidContentInsetLeft ```ts androidContentInsetLeft: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### androidContentInsetRight ```ts androidContentInsetRight: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### androidSelectedTabHighlightColor ```ts androidSelectedTabHighlightColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### androidStatusBarBackground ```ts androidStatusBarBackground: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### background ```ts background: string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### backgroundColor ```ts backgroundColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### backgroundInternal ```ts backgroundInternal: Background; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### backgroundPosition ```ts backgroundPosition: string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### backgroundRepeat ```ts backgroundRepeat: BackgroundRepeatType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### backgroundSize ```ts backgroundSize: string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### clipPath ```ts clipPath: string | ClipPathFunction; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### color ```ts color: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### columnGap ```ts columnGap: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### cornerShape ```ts cornerShape: CornerShapeType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) The curve used to round the corners: 'round' (circular arcs, the default) or 'squircle' (Apple's continuous corner curve). iOS only; Android always renders circular corners. *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### flexDirection ```ts flexDirection: FlexDirection; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### flexFlow ```ts flexFlow: | "row nowrap" | "row wrap" | "row wrap-reverse" | "row-reverse nowrap" | "row-reverse wrap" | "row-reverse wrap-reverse" | "column nowrap" | "column wrap" | "column wrap-reverse" | "column-reverse nowrap" | "column-reverse wrap" | "column-reverse wrap-reverse"; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### flexWrap ```ts flexWrap: FlexWrap; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### font ```ts font: string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### fontFamily ```ts fontFamily: string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### fontInternal ```ts fontInternal: Font; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### fontScaleInternal ```ts fontScaleInternal: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) This property ensures inheritance of a11y scale among views. *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### fontVariationSettings ```ts fontVariationSettings: FontVariationSettingsType[]; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### gap ```ts gap: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### iconFontFamily ```ts iconFontFamily: string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### justifyContent ```ts justifyContent: JustifyContent; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### letterSpacing ```ts letterSpacing: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### lineHeight ```ts lineHeight: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### maxLines ```ts maxLines: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### order ```ts order: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### paddingInternal ```ts paddingInternal: string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### placeholderColor ```ts placeholderColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### PropertyBag ```ts PropertyBag: { (): { [property: string]: string; }; prototype: { [property: string]: string; }; }; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) #### Returns ```ts { [property: string]: string; } ``` #### prototype ```ts prototype: { [property: string]: string; }; ``` ##### Index Signature ```ts [property: string]: string ``` *** ### rotate ```ts rotate: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### rowGap ```ts rowGap: LengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### selectedBackgroundColor ```ts selectedBackgroundColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### selectedTabTextColor ```ts selectedTabTextColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### selectedTextColor ```ts selectedTextColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### separatorColor ```ts separatorColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### tabBackgroundColor ```ts tabBackgroundColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### tabTextColor ```ts tabTextColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### tabTextFontSize ```ts tabTextFontSize: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### textAlignment ```ts textAlignment: TextAlignmentType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### textDecoration ```ts textDecoration: TextDecorationType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### textOverflow ```ts textOverflow: TextOverflowType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### textShadow ```ts textShadow: ShadowCSSValues; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### textStroke ```ts textStroke: StrokeCSSValues; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### textTransform ```ts textTransform: TextTransformType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### tintColor ```ts tintColor: Color; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### viewRef ```ts viewRef: WeakRef; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### whiteSpace ```ts whiteSpace: WhiteSpaceType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### zIndex ```ts zIndex: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ### view #### Get Signature ```ts get view(): ViewBase; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) ##### Returns [`ViewBase`](ViewBase.md) ## Methods ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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) *** ### getCssVariable() ```ts getCssVariable(varName: string): string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `varName` | `string` | #### Returns `string` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### removeScopedCssVariable() ```ts removeScopedCssVariable(varName: string): void; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `varName` | `string` | #### Returns `void` *** ### removeUnscopedCssVariable() ```ts removeUnscopedCssVariable(varName: string): void; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `varName` | `string` | #### Returns `void` *** ### resetScopedCssVariables() ```ts resetScopedCssVariables(): void; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) #### Returns `void` *** ### resetUnscopedCssVariables() ```ts resetUnscopedCssVariables(): void; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) #### Returns `void` *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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) *** ### setScopedCssVariable() ```ts setScopedCssVariable(varName: string, value: string): void; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `varName` | `string` | | `value` | `string` | #### Returns `void` *** ### setUnscopedCssVariable() ```ts setUnscopedCssVariable(varName: string, value: string): void; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `varName` | `string` | | `value` | `string` | #### Returns `void` *** ### toString() ```ts toString(): string; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) Returns a string representation of an object. #### Returns `string` *** ### ~~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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/Switch.md' description: Represents a switch component. --- Defined in: [ui/switch/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/switch/index.d.ts#L10) Represents a switch component. ## Ns View Switch ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new Switch(): Switch; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `Switch` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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/switch/index.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/switch/index.d.ts#L21) Gets the native [android widget](http://developer.android.com/reference/android/widget/Switch.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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### checked ```ts checked: boolean; ``` Defined in: [ui/switch/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/switch/index.d.ts#L33) Gets or sets if a switch is checked or not. #### Ns Property *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/switch/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/switch/index.d.ts#L26) Gets the native iOS [UISwitch](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISwitch_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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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) *** ### offBackgroundColor ```ts offBackgroundColor: Color; ``` Defined in: [ui/switch/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/switch/index.d.ts#L40) Gets or sets the background color of the Switch when it is turned off. #### Ns Property *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### checkedChangeEvent ```ts static checkedChangeEvent: string; ``` Defined in: [ui/switch/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/switch/index.d.ts#L16) String value used when hooking to checkedChange event. #### Ns Event checkedChange *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/TabView.md' description: Represents a tab view. --- Defined in: [ui/tab-view/index.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L78) Represents a tab view. ## Ns View TabView ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new TabView(): TabView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `TabView` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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/tab-view/index.d.ts:153](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L153) Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidIconRenderingMode ```ts androidIconRenderingMode: "alwaysOriginal" | "alwaysTemplate"; ``` Defined in: [ui/tab-view/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L179) Gets or sets the rendering mode of tab icons on Android. Defaults to "original" Valid values are: * alwaysOriginal * alwaysTemplate #### Ns Property *** ### androidOffscreenTabLimit ```ts androidOffscreenTabLimit: number; ``` Defined in: [ui/tab-view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L187) Gets or sets the number of tabs that should be retained to either side of the current tab in the view hierarchy in an idle state. Tabs beyond this limit will be recreated from the TabView when needed. #### Ns Property *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### androidSelectedTabHighlightColor ```ts androidSelectedTabHighlightColor: Color; ``` Defined in: [ui/tab-view/index.d.ts:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L148) Gets or sets the color of the horizontal line drawn below the currently selected tab on Android. #### Ns Property *** ### androidSwipeEnabled ```ts androidSwipeEnabled: boolean; ``` Defined in: [ui/tab-view/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L204) Gets or sets a value indicating whether swipe gesture is enabled for Android. #### Ns Property *** ### androidTabsPosition ```ts androidTabsPosition: "top" | "bottom"; ``` Defined in: [ui/tab-view/index.d.ts:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L197) Gets or set the tabs vertical position. Valid values are: * top * bottom #### Ns Property *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/tab-view/index.d.ts:158](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L158) Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosBottomAccessory ```ts iosBottomAccessory: View; ``` Defined in: [ui/tab-view/index.d.ts:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L141) iOS 26+: Optional bottom accessory view that appears above the tab bar. Provide a NativeScript View instance. On platforms < iOS 26 this is ignored. #### Ns Property *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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/tab-view/index.d.ts:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L169) Gets or set the UIImageRenderingMode of the tab icons in iOS. Defaults to "automatic" Valid values are: * automatic * alwaysOriginal * alwaysTemplate #### Ns Property *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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) *** ### iosTabBarMinimizeBehavior ```ts iosTabBarMinimizeBehavior: TabBarMinimizeType; ``` Defined in: [ui/tab-view/index.d.ts:133](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L133) Gets or sets the iOS tab bar minimize behavior (iOS 26+). #### Ns Property *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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: TabViewItem[]; ``` Defined in: [ui/tab-view/index.d.ts:91](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L91) Gets or sets the items of the TabView. #### Ns Property *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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/tab-view/index.d.ts:98](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L98) Gets or sets the selectedIndex of the TabView. #### Ns Property *** ### selectedTabTextColor ```ts selectedTabTextColor: Color; ``` Defined in: [ui/tab-view/index.d.ts:126](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L126) Gets or sets the text color of the selected tab title. #### Ns Property *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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) *** ### tabBackgroundColor ```ts tabBackgroundColor: Color; ``` Defined in: [ui/tab-view/index.d.ts:119](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L119) Gets or sets the background color of the tabs. #### Ns Property *** ### tabTextColor ```ts tabTextColor: Color; ``` Defined in: [ui/tab-view/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L112) Gets or sets the text color of the tabs titles. #### Ns Property *** ### tabTextFontSize ```ts tabTextFontSize: number; ``` Defined in: [ui/tab-view/index.d.ts:105](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L105) Gets or sets the font size of the tabs titles. #### Ns Property *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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) *** ### selectedIndexChangedEvent ```ts static selectedIndexChangedEvent: string; ``` Defined in: [ui/tab-view/index.d.ts:84](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L84) String value used when hooking to the selectedIndexChanged event. #### Ns Event selectedIndexChanged *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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/tab-view/index.d.ts:216](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L216) 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: "selectedIndexChanged", callback: (args: SelectedIndexChangedEventData) => void, thisArg?: any): void; ``` Defined in: [ui/tab-view/index.d.ts:221](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L221) Raised when the selected index changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"selectedIndexChanged"` | | `callback` | (`args`: `SelectedIndexChangedEventData`) => `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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/TabViewItem.md' description: Represents a tab view entry. --- Defined in: [ui/tab-view/index.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L18) Represents a tab view entry. ## Ns View TabViewItem ## Extends * [`ViewBase`](ViewBase.md) ## Constructors ### Constructor ```ts new TabViewItem(): TabViewItem; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `TabViewItem` #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderTopWidth`](ViewBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveColumnGap`](ViewBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginTop`](ViewBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxHeight`](ViewBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMaxWidth`](ViewBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMinWidth`](ViewBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveRowGap`](ViewBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### iconSource ```ts iconSource: string; ``` Defined in: [ui/tab-view/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L38) Gets or sets the icon source of the TabViewItem. This could either be a a file name or resource id. #### Ns Property *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### role ```ts role: string; ``` Defined in: [ui/tab-view/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L43) Gets or sets the role of the TabViewItem. *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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) *** ### textTransform ```ts textTransform: TextTransformType; ``` Defined in: [ui/tab-view/index.d.ts:50](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L50) Gets or sets the text transform of the tab titles. #### Ns Property *** ### title ```ts title: string; ``` Defined in: [ui/tab-view/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L24) Gets or sets the title of the TabViewItem. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### view ```ts view: View; ``` Defined in: [ui/tab-view/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/tab-view/index.d.ts#L31) Gets or sets the view of the TabViewItem. #### Ns Property *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### cssType #### Get Signature ```ts get cssType(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the CSS fully qualified type name used for selector matching. ##### Returns `string` #### Set Signature ```ts set cssType(value: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`cssType`](ViewBase.md#csstype) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/TextBase.md' --- Defined in: [ui/text-base/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L14) ## Ns View TextBase ## Extends * [`View`](View.md) ## Extended by * [`EditableTextBase`](EditableTextBase.md) * [`Button`](Button.md) * [`Label`](Label.md) ## Implements * [`AddChildFromBuilder`](../interfaces/AddChildFromBuilder.md) ## Constructors ### Constructor ```ts new TextBase(): TextBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `TextBase` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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) *** ### fontFamily ```ts fontFamily: string; ``` Defined in: [ui/text-base/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L40) Gets or sets font-family style property. #### Ns Property *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/text-base/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L47) Gets or sets font-size style property. #### Ns Property *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/text-base/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L54) Gets or sets font-style style property. #### Ns Property *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/text-base/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L61) Gets or sets font-weight style property. #### Ns Property *** ### formattedText ```ts formattedText: FormattedString; ``` Defined in: [ui/text-base/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L33) Gets or sets a formatted string. #### Ns Property *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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) *** ### iosTextAnimation ```ts iosTextAnimation: boolean | "inherit"; ``` Defined in: [ui/text-base/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L174) Specify wether the native text should be applied with or without animations #### Ns Property *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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) *** ### letterSpacing ```ts letterSpacing: number; ``` Defined in: [ui/text-base/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L68) Gets or sets letterSpace style property. #### Ns Property *** ### lineHeight ```ts lineHeight: number; ``` Defined in: [ui/text-base/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L75) Gets or sets lineHeight style property. #### Ns Property *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxLines ```ts maxLines: number; ``` Defined in: [ui/text-base/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L132) Gets or sets white space style property. #### Ns Property *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeTextViewProtected ```ts readonly nativeTextViewProtected: any; ``` Defined in: [ui/text-base/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/text-base/index.d.ts:139](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L139) Gets or sets padding style property. #### Ns Property *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/text-base/index.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L146) Specify the bottom padding of this layout. #### Ns Property *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/text-base/index.d.ts:153](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L153) Specify the left padding of this layout. #### Ns Property *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/text-base/index.d.ts:160](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L160) Specify the right padding of this layout. #### Ns Property *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/text-base/index.d.ts:167](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L167) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### text ```ts text: string; ``` Defined in: [ui/text-base/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L26) Gets or sets the text. #### Ns Property *** ### textAlignment ```ts textAlignment: TextAlignmentType; ``` Defined in: [ui/text-base/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L82) Gets or sets text-alignment style property. #### Ns Property *** ### textDecoration ```ts textDecoration: TextDecorationType; ``` Defined in: [ui/text-base/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L89) Gets or sets text decorations style property. #### Ns Property *** ### textOverflow ```ts textOverflow: TextOverflowType; ``` Defined in: [ui/text-base/index.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L125) Gets or sets text-overflow style property. #### Ns Property *** ### textShadow ```ts textShadow: ShadowCSSValues; ``` Defined in: [ui/text-base/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L103) Gets or sets text shadow style property. #### Ns Property *** ### textStroke ```ts textStroke: StrokeCSSValues; ``` Defined in: [ui/text-base/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L111) Gets or sets text stroke style property. #### Ns Property *** ### textTransform ```ts textTransform: TextTransformType; ``` Defined in: [ui/text-base/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L96) Gets or sets text transform style property. #### Ns Property #### Overrides [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### whiteSpace ```ts whiteSpace: WhiteSpaceType; ``` Defined in: [ui/text-base/index.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L118) Gets or sets white space style property. #### Ns Property *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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) *** ### iosTextAnimationFallback ```ts static iosTextAnimationFallback: boolean; ``` Defined in: [ui/text-base/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L179) The value used when the iosTextAnimation is set to 'inherit' *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/TextField.md' description: Represents an editable text field. --- Defined in: [ui/text-field/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-field/index.d.ts#L11) Represents an editable text field. ## Ns View TextField ## Extends * [`EditableTextBase`](EditableTextBase.md) ## Constructors ### Constructor ```ts new TextField(): TextField; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `TextField` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`constructor`](EditableTextBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_androidContentDescriptionUpdated`](EditableTextBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_automaticallyAdjustsScrollViewInsets`](EditableTextBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_closeModalCallback`](EditableTextBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_context`](EditableTextBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_cssState`](EditableTextBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_defaultPaddingBottom`](EditableTextBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_defaultPaddingLeft`](EditableTextBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_defaultPaddingRight`](EditableTextBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_defaultPaddingTop`](EditableTextBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_domId`](EditableTextBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_ignoreFlexMinWidthHeightReset`](EditableTextBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_isAddedToNativeVisualTree`](EditableTextBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_isPaddingRelative`](EditableTextBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_isStyleScopeHost`](EditableTextBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_nativeWindow`](EditableTextBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_oldBottom`](EditableTextBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_oldLeft`](EditableTextBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_oldRight`](EditableTextBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_oldTop`](EditableTextBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_styleScope`](EditableTextBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_suspendNativeUpdatesCount`](EditableTextBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityHidden`](EditableTextBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityHint`](EditableTextBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityIdentifier`](EditableTextBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityIgnoresInvertColors`](EditableTextBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityLabel`](EditableTextBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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 [`EditableTextBase`](EditableTextBase.md).[`accessibilityLanguage`](EditableTextBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityLiveRegion`](EditableTextBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityMediaSession`](EditableTextBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityRole`](EditableTextBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityState`](EditableTextBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) Current value of the element in a localized string. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityValue`](EditableTextBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessible`](EditableTextBase.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`alignSelf`](EditableTextBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/text-field/index.d.ts:22](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-field/index.d.ts#L22) Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS. #### Overrides [`EditableTextBase`](EditableTextBase.md).[`android`](EditableTextBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`androidDynamicElevationOffset`](EditableTextBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`androidElevation`](EditableTextBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`androidOverflowEdge`](EditableTextBase.md#androidoverflowedge) *** ### autocapitalizationType ```ts autocapitalizationType: AutocapitalizationInputType; ``` Defined in: [ui/editable-text-base/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L59) Gets or sets the autocapitalization type. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`autocapitalizationType`](EditableTextBase.md#autocapitalizationtype) *** ### autocorrect ```ts autocorrect: boolean; ``` Defined in: [ui/editable-text-base/index.d.ts:80](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L80) Enables or disables autocorrection. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`autocorrect`](EditableTextBase.md#autocorrect) *** ### autofillType ```ts autofillType: string; ``` Defined in: [ui/editable-text-base/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L66) Gets or sets the autofill type. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`autofillType`](EditableTextBase.md#autofilltype) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`automationText`](EditableTextBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) Gets or sets the background style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`background`](EditableTextBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundColor`](EditableTextBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundImage`](EditableTextBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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 [`EditableTextBase`](EditableTextBase.md).[`bindingContext`](EditableTextBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderBottomColor`](EditableTextBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderBottomLeftRadius`](EditableTextBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderBottomRightRadius`](EditableTextBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderBottomWidth`](EditableTextBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderColor`](EditableTextBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderLeftColor`](EditableTextBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderLeftWidth`](EditableTextBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderRadius`](EditableTextBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderRightColor`](EditableTextBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderRightWidth`](EditableTextBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderTopColor`](EditableTextBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderTopLeftRadius`](EditableTextBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderTopRightRadius`](EditableTextBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderTopWidth`](EditableTextBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderWidth`](EditableTextBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`boxShadow`](EditableTextBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`className`](EditableTextBase.md#classname) *** ### closeOnReturn ```ts closeOnReturn: boolean; ``` Defined in: [ui/text-field/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-field/index.d.ts#L41) Gets or sets if a text field should dismiss on return. #### Ns Property *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`col`](EditableTextBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) Gets or sets the color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`color`](EditableTextBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`colSpan`](EditableTextBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`column`](EditableTextBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`columnSpan`](EditableTextBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`cssClasses`](EditableTextBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`cssPseudoClasses`](EditableTextBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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 [`EditableTextBase`](EditableTextBase.md).[`cssType`](EditableTextBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`defaultVisualState`](EditableTextBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`direction`](EditableTextBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`dock`](EditableTextBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`domNode`](EditableTextBase.md#domnode) *** ### editable ```ts editable: boolean; ``` Defined in: [ui/editable-text-base/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L73) Gets or sets whether the instance is editable. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`editable`](EditableTextBase.md#editable) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveBorderBottomWidth`](EditableTextBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveBorderLeftWidth`](EditableTextBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveBorderRightWidth`](EditableTextBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveBorderTopWidth`](EditableTextBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveColumnGap`](EditableTextBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveHeight`](EditableTextBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveLeft`](EditableTextBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMarginBottom`](EditableTextBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMarginLeft`](EditableTextBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMarginRight`](EditableTextBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMarginTop`](EditableTextBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMaxHeight`](EditableTextBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMaxWidth`](EditableTextBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMinHeight`](EditableTextBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMinWidth`](EditableTextBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveRowGap`](EditableTextBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveTop`](EditableTextBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveWidth`](EditableTextBase.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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 [`EditableTextBase`](EditableTextBase.md).[`flex`](EditableTextBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`flexFlow`](EditableTextBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`flexGrow`](EditableTextBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`flexShrink`](EditableTextBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`flexWrapBefore`](EditableTextBase.md#flexwrapbefore) *** ### fontFamily ```ts fontFamily: string; ``` Defined in: [ui/text-base/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L40) Gets or sets font-family style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`fontFamily`](EditableTextBase.md#fontfamily) *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/text-base/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L47) Gets or sets font-size style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`fontSize`](EditableTextBase.md#fontsize) *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/text-base/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L54) Gets or sets font-style style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`fontStyle`](EditableTextBase.md#fontstyle) *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/text-base/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L61) Gets or sets font-weight style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`fontWeight`](EditableTextBase.md#fontweight) *** ### formattedText ```ts formattedText: FormattedString; ``` Defined in: [ui/text-base/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L33) Gets or sets a formatted string. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`formattedText`](EditableTextBase.md#formattedtext) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`height`](EditableTextBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`hidden`](EditableTextBase.md#hidden) *** ### hint ```ts hint: string; ``` Defined in: [ui/editable-text-base/index.d.ts:87](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L87) Gets or sets the placeholder text. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`hint`](EditableTextBase.md#hint) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`horizontalAlignment`](EditableTextBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`id`](EditableTextBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`ignoreTouchAnimation`](EditableTextBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/text-field/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-field/index.d.ts#L27) Gets the native iOS [UITextField](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextField_Class/) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`EditableTextBase`](EditableTextBase.md).[`ios`](EditableTextBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosAccessibilityAdjustsFontSize`](EditableTextBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosAccessibilityMaxFontScale`](EditableTextBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosAccessibilityMinFontScale`](EditableTextBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosGlassEffect`](EditableTextBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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 [`EditableTextBase`](EditableTextBase.md).[`iosIgnoreSafeArea`](EditableTextBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosOverflowSafeArea`](EditableTextBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosOverflowSafeAreaEnabled`](EditableTextBase.md#iosoverflowsafeareaenabled) *** ### iosTextAnimation ```ts iosTextAnimation: boolean | "inherit"; ``` Defined in: [ui/text-base/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`iosTextAnimation`](EditableTextBase.md#iostextanimation) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`isCollapsed`](EditableTextBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`isEnabled`](EditableTextBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) Gets if layout is valid. This is a read-only property. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`isLayoutValid`](EditableTextBase.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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 [`EditableTextBase`](EditableTextBase.md).[`isUserInteractionEnabled`](EditableTextBase.md#isuserinteractionenabled) *** ### keyboardType ```ts keyboardType: KeyboardInputType; ``` Defined in: [ui/editable-text-base/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L38) Gets or sets the soft keyboard type. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`keyboardType`](EditableTextBase.md#keyboardtype) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`left`](EditableTextBase.md#left) *** ### letterSpacing ```ts letterSpacing: number; ``` Defined in: [ui/text-base/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L68) Gets or sets letterSpace style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`letterSpacing`](EditableTextBase.md#letterspacing) *** ### lineHeight ```ts lineHeight: number; ``` Defined in: [ui/text-base/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L75) Gets or sets lineHeight style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`lineHeight`](EditableTextBase.md#lineheight) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) Gets or sets margin style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`margin`](EditableTextBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`marginBottom`](EditableTextBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`marginLeft`](EditableTextBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`marginRight`](EditableTextBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`marginTop`](EditableTextBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`maxHeight`](EditableTextBase.md#maxheight) *** ### maxLength ```ts maxLength: number; ``` Defined in: [ui/editable-text-base/index.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L94) Limits input to a certain number of characters. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`maxLength`](EditableTextBase.md#maxlength) *** ### maxLines ```ts maxLines: number; ``` Defined in: [ui/text-base/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L132) Gets or sets white space style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`maxLines`](EditableTextBase.md#maxlines) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`maxWidth`](EditableTextBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`minHeight`](EditableTextBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`minWidth`](EditableTextBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`modal`](EditableTextBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) Native background states. This is a read-only property. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`nativeBackgroundState`](EditableTextBase.md#nativebackgroundstate) *** ### nativeTextViewProtected ```ts readonly nativeTextViewProtected: any; ``` Defined in: [ui/text-base/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`nativeTextViewProtected`](EditableTextBase.md#nativetextviewprotected) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`nativeViewProtected`](EditableTextBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`opacity`](EditableTextBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`order`](EditableTextBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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 [`EditableTextBase`](EditableTextBase.md).[`originX`](EditableTextBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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 [`EditableTextBase`](EditableTextBase.md).[`originY`](EditableTextBase.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.1.0-core/packages/core/ui/text-base/index.d.ts#L139) Gets or sets padding style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`padding`](EditableTextBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/text-base/index.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L146) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`paddingBottom`](EditableTextBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/text-base/index.d.ts:153](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L153) Specify the left padding of this layout. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`paddingLeft`](EditableTextBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/text-base/index.d.ts:160](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L160) Specify the right padding of this layout. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`paddingRight`](EditableTextBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/text-base/index.d.ts:167](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L167) Specify the top padding of this layout. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`paddingTop`](EditableTextBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`parent`](EditableTextBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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 [`EditableTextBase`](EditableTextBase.md).[`perspective`](EditableTextBase.md#perspective) *** ### placeholderColor ```ts placeholderColor: Color; ``` Defined in: [ui/editable-text-base/index.d.ts:101](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L101) Gets or sets the color of the placeholder text #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`placeholderColor`](EditableTextBase.md#placeholdercolor) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`recycleNativeView`](EditableTextBase.md#recyclenativeview) *** ### returnKeyType ```ts returnKeyType: ReturnKeyButtonType; ``` Defined in: [ui/editable-text-base/index.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L45) Gets or sets the soft keyboard return key flavor. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`returnKeyType`](EditableTextBase.md#returnkeytype) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`reusable`](EditableTextBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`rotate`](EditableTextBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`rotateX`](EditableTextBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`rotateY`](EditableTextBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`row`](EditableTextBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`rowSpan`](EditableTextBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`scaleX`](EditableTextBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`scaleY`](EditableTextBase.md#scaley) *** ### secure ```ts secure: boolean; ``` Defined in: [ui/text-field/index.d.ts:34](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-field/index.d.ts#L34) Gets or sets if a text field is for password entry. #### Ns Property *** ### secureWithoutAutofill ```ts secureWithoutAutofill: boolean; ``` Defined in: [ui/text-field/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-field/index.d.ts#L48) iOS only (to avoid 12+ auto suggested strong password handling) #### Ns Property *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`sharedTransitionIgnore`](EditableTextBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`sharedTransitionTag`](EditableTextBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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 [`EditableTextBase`](EditableTextBase.md).[`statusBarStyle`](EditableTextBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`testID`](EditableTextBase.md#testid) *** ### text ```ts text: string; ``` Defined in: [ui/text-base/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L26) Gets or sets the text. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`text`](EditableTextBase.md#text) *** ### textAlignment ```ts textAlignment: TextAlignmentType; ``` Defined in: [ui/text-base/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L82) Gets or sets text-alignment style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textAlignment`](EditableTextBase.md#textalignment) *** ### textDecoration ```ts textDecoration: TextDecorationType; ``` Defined in: [ui/text-base/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L89) Gets or sets text decorations style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textDecoration`](EditableTextBase.md#textdecoration) *** ### textOverflow ```ts textOverflow: TextOverflowType; ``` Defined in: [ui/text-base/index.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L125) Gets or sets text-overflow style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textOverflow`](EditableTextBase.md#textoverflow) *** ### textShadow ```ts textShadow: ShadowCSSValues; ``` Defined in: [ui/text-base/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L103) Gets or sets text shadow style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textShadow`](EditableTextBase.md#textshadow) *** ### textStroke ```ts textStroke: StrokeCSSValues; ``` Defined in: [ui/text-base/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L111) Gets or sets text stroke style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textStroke`](EditableTextBase.md#textstroke) *** ### textTransform ```ts textTransform: TextTransformType; ``` Defined in: [ui/text-base/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L96) Gets or sets text transform style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textTransform`](EditableTextBase.md#texttransform) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`top`](EditableTextBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`touchAnimation`](EditableTextBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`touchDelay`](EditableTextBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`transitionId`](EditableTextBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`translateX`](EditableTextBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`translateY`](EditableTextBase.md#translatey) *** ### updateTextTrigger ```ts updateTextTrigger: UpdateTextTriggerType; ``` Defined in: [ui/editable-text-base/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`updateTextTrigger`](EditableTextBase.md#updatetexttrigger) *** ### valueFormatter ```ts valueFormatter: (value: string) => string; ``` Defined in: [ui/editable-text-base/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`valueFormatter`](EditableTextBase.md#valueformatter) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`verticalAlignment`](EditableTextBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`viewController`](EditableTextBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`visibility`](EditableTextBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) visionOS only #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`visionHoverStyle`](EditableTextBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) visionOS only #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`visionIgnoreHoverStyle`](EditableTextBase.md#visionignorehoverstyle) *** ### whiteSpace ```ts whiteSpace: WhiteSpaceType; ``` Defined in: [ui/text-base/index.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L118) Gets or sets white space style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`whiteSpace`](EditableTextBase.md#whitespace) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`width`](EditableTextBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityBlurEvent`](EditableTextBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityFocusChangedEvent`](EditableTextBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityFocusEvent`](EditableTextBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityPerformEscapeEvent`](EditableTextBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`androidOverflowInsetEvent`](EditableTextBase.md#androidoverflowinsetevent) *** ### blurEvent ```ts static blurEvent: string; ``` Defined in: [ui/editable-text-base/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L19) String value used when hooking to the blur event. #### Ns Event blurEvent #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`blurEvent`](EditableTextBase.md#blurevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`closedModallyEvent`](EditableTextBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`createdEvent`](EditableTextBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`disposeNativeViewEvent`](EditableTextBase.md#disposenativeviewevent) *** ### focusEvent ```ts static focusEvent: string; ``` Defined in: [ui/editable-text-base/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L25) String value used when hooking to the focus event. #### Ns Event focusEvent #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`focusEvent`](EditableTextBase.md#focusevent) *** ### iosTextAnimationFallback ```ts static iosTextAnimationFallback: boolean; ``` Defined in: [ui/text-base/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L179) The value used when the iosTextAnimation is set to 'inherit' #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosTextAnimationFallback`](EditableTextBase.md#iostextanimationfallback) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`layoutChangedEvent`](EditableTextBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`loadedEvent`](EditableTextBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`propertyChangeEvent`](EditableTextBase.md#propertychangeevent) *** ### returnPressEvent ```ts static returnPressEvent: string; ``` Defined in: [ui/text-field/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-field/index.d.ts#L17) String value used when hooking to the returnPress event. #### Ns Event returnPress *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`showingModallyEvent`](EditableTextBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`shownModallyEvent`](EditableTextBase.md#shownmodallyevent) *** ### textChangeEvent ```ts static textChangeEvent: string; ``` Defined in: [ui/editable-text-base/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L31) String value used when hooking to the textChange event. #### Ns Event textChangeEvent #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textChangeEvent`](EditableTextBase.md#textchangeevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`unloadedEvent`](EditableTextBase.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.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundPosition`](EditableTextBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundRepeat`](EditableTextBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundSize`](EditableTextBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`class`](EditableTextBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectivePaddingBottom`](EditableTextBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectivePaddingLeft`](EditableTextBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectivePaddingRight`](EditableTextBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectivePaddingTop`](EditableTextBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`isLoaded`](EditableTextBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`nativeView`](EditableTextBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`page`](EditableTextBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`parentNode`](EditableTextBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`style`](EditableTextBase.md#style) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`typeName`](EditableTextBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`visualState`](EditableTextBase.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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_addView`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_addViewCore`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_addViewToNativeVisualTree`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_applyGlassEffect`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_applyXmlAttribute`](EditableTextBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_batchUpdate`](EditableTextBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_childIndexToNativeChildIndex`](EditableTextBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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 [`EditableTextBase`](EditableTextBase.md).[`_closeAllModalViewsInternal`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_createPropertyChangeData`](EditableTextBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_dialogClosed`](EditableTextBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_eachLayoutView`](EditableTextBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_emit`](EditableTextBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_getNativeViewsCount`](EditableTextBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_getRootModalHost`](EditableTextBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_getRootModalViews`](EditableTextBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_getValue`](EditableTextBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_handleLivesync`](EditableTextBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_hasAncestorView`](EditableTextBase.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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_hideNativeModalView`](EditableTextBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_inheritStyles`](EditableTextBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_inheritStyleScope`](EditableTextBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_layoutParent`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_observe`](EditableTextBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_onAttachedToWindow`](EditableTextBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_onDetachedFromWindow`](EditableTextBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_onRootViewReset`](EditableTextBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_onSizeChanged`](EditableTextBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_parentChanged`](EditableTextBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_raiseLayoutChangedEvent`](EditableTextBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_raiseShowingModallyEvent`](EditableTextBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_raiseShownModallyEvent`](EditableTextBase.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_removeView`](EditableTextBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_removeViewCore`](EditableTextBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_removeViewFromNativeVisualTree`](EditableTextBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_resumeNativeUpdates`](EditableTextBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_setDefaultPaddings`](EditableTextBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_setupAsRootView`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_setupUI`](EditableTextBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_setValue`](EditableTextBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_shouldDelayLayout`](EditableTextBase.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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_showNativeModalView`](EditableTextBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_suspendNativeUpdates`](EditableTextBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_tearDownUI`](EditableTextBase.md#teardownui) *** ### \_updateAttributedPlaceholder()? ```ts optional _updateAttributedPlaceholder(): void; ``` Defined in: [ui/text-field/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-field/index.d.ts#L53) iOS only update placeholder attributed text style #### Returns `void` *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_updateStyleScope`](EditableTextBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityAnnouncement`](EditableTextBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) Announce screen changed #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityScreenChanged`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`addEventListener`](EditableTextBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`addPseudoClass`](EditableTextBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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 [`EditableTextBase`](EditableTextBase.md).[`animate`](EditableTextBase.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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`bind`](EditableTextBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`callLoaded`](EditableTextBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`callUnloaded`](EditableTextBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`closeModal`](EditableTextBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`createAnimation`](EditableTextBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`createNativeView`](EditableTextBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`deletePseudoClass`](EditableTextBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`destroyNode`](EditableTextBase.md#destroynode) *** ### dismissSoftInput() ```ts dismissSoftInput(): void; ``` Defined in: [ui/editable-text-base/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L112) Hides the soft input method, ususally a soft keyboard. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`dismissSoftInput`](EditableTextBase.md#dismisssoftinput) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`disposeNativeView`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`eachChild`](EditableTextBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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 [`EditableTextBase`](EditableTextBase.md).[`eachChildView`](EditableTextBase.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`ensureDomNode`](EditableTextBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`focus`](EditableTextBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`get`](EditableTextBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getActualSize`](EditableTextBase.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getClosestWindow`](EditableTextBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getEffectivePaddingShorthand`](EditableTextBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getGestureObservers`](EditableTextBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getLocationInWindow`](EditableTextBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getLocationOnScreen`](EditableTextBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getLocationRelativeTo`](EditableTextBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) Returns the raw height component. #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getMeasuredHeight`](EditableTextBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getMeasuredState`](EditableTextBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getMeasuredWidth`](EditableTextBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getNativeWindow`](EditableTextBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getSafeAreaInsets`](EditableTextBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`getViewByDomId`](EditableTextBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`getViewById`](EditableTextBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`hasGestureObservers`](EditableTextBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`hasListeners`](EditableTextBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`initNativeView`](EditableTextBase.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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 [`EditableTextBase`](EditableTextBase.md).[`layout`](EditableTextBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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 [`EditableTextBase`](EditableTextBase.md).[`layoutNativeView`](EditableTextBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`loadView`](EditableTextBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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 [`EditableTextBase`](EditableTextBase.md).[`measure`](EditableTextBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`notify`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`notifyPropertyChange`](EditableTextBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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 [`EditableTextBase`](EditableTextBase.md).[`off`](EditableTextBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`onBackPressed`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`once`](EditableTextBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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 [`EditableTextBase`](EditableTextBase.md).[`onLayout`](EditableTextBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`onLoaded`](EditableTextBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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 [`EditableTextBase`](EditableTextBase.md).[`onMeasure`](EditableTextBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`onResumeNativeUpdates`](EditableTextBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`onUnloaded`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`removeEventListener`](EditableTextBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`requestLayout`](EditableTextBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`resetNativeView`](EditableTextBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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 [`EditableTextBase`](EditableTextBase.md).[`sendAccessibilityEvent`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`set`](EditableTextBase.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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`setAccessibilityIdentifier`](EditableTextBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`setInlineStyle`](EditableTextBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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 [`EditableTextBase`](EditableTextBase.md).[`setMeasuredDimension`](EditableTextBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`setNativeView`](EditableTextBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) Android only to set the touch listener #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`setOnTouchListener`](EditableTextBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`setProperty`](EditableTextBase.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.1.0-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` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`setSelection`](EditableTextBase.md#setselection) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`showModal`](EditableTextBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`toString`](EditableTextBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`unbind`](EditableTextBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`unloadView`](EditableTextBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`updateStatusBarStyle`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`addEventListener`](EditableTextBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`combineMeasuredStates`](EditableTextBase.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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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 [`EditableTextBase`](EditableTextBase.md).[`layoutChild`](EditableTextBase.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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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 [`EditableTextBase`](EditableTextBase.md).[`measureChild`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`off`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`once`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`removeEventListener`](EditableTextBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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 [`EditableTextBase`](EditableTextBase.md).[`resolveSizeAndState`](EditableTextBase.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/TextView.md' description: Represents an editable multiline text view. --- Defined in: [ui/text-view/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-view/index.d.ts#L10) Represents an editable multiline text view. ## Ns View TextView ## Extends * [`EditableTextBase`](EditableTextBase.md) ## Constructors ### Constructor ```ts new TextView(): TextView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `TextView` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`constructor`](EditableTextBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_androidContentDescriptionUpdated`](EditableTextBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_automaticallyAdjustsScrollViewInsets`](EditableTextBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_closeModalCallback`](EditableTextBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_context`](EditableTextBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_cssState`](EditableTextBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_defaultPaddingBottom`](EditableTextBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_defaultPaddingLeft`](EditableTextBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_defaultPaddingRight`](EditableTextBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_defaultPaddingTop`](EditableTextBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_domId`](EditableTextBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_ignoreFlexMinWidthHeightReset`](EditableTextBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_isAddedToNativeVisualTree`](EditableTextBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_isPaddingRelative`](EditableTextBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_isStyleScopeHost`](EditableTextBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_nativeWindow`](EditableTextBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_oldBottom`](EditableTextBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_oldLeft`](EditableTextBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_oldRight`](EditableTextBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_oldTop`](EditableTextBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_styleScope`](EditableTextBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_suspendNativeUpdatesCount`](EditableTextBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityHidden`](EditableTextBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityHint`](EditableTextBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityIdentifier`](EditableTextBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityIgnoresInvertColors`](EditableTextBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityLabel`](EditableTextBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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 [`EditableTextBase`](EditableTextBase.md).[`accessibilityLanguage`](EditableTextBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityLiveRegion`](EditableTextBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityMediaSession`](EditableTextBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityRole`](EditableTextBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityState`](EditableTextBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) Current value of the element in a localized string. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityValue`](EditableTextBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessible`](EditableTextBase.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`alignSelf`](EditableTextBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/text-view/index.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-view/index.d.ts#L21) Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS. #### Overrides [`EditableTextBase`](EditableTextBase.md).[`android`](EditableTextBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`androidDynamicElevationOffset`](EditableTextBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`androidElevation`](EditableTextBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`androidOverflowEdge`](EditableTextBase.md#androidoverflowedge) *** ### autocapitalizationType ```ts autocapitalizationType: AutocapitalizationInputType; ``` Defined in: [ui/editable-text-base/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L59) Gets or sets the autocapitalization type. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`autocapitalizationType`](EditableTextBase.md#autocapitalizationtype) *** ### autocorrect ```ts autocorrect: boolean; ``` Defined in: [ui/editable-text-base/index.d.ts:80](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L80) Enables or disables autocorrection. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`autocorrect`](EditableTextBase.md#autocorrect) *** ### autofillType ```ts autofillType: string; ``` Defined in: [ui/editable-text-base/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L66) Gets or sets the autofill type. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`autofillType`](EditableTextBase.md#autofilltype) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`automationText`](EditableTextBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) Gets or sets the background style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`background`](EditableTextBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundColor`](EditableTextBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundImage`](EditableTextBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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 [`EditableTextBase`](EditableTextBase.md).[`bindingContext`](EditableTextBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderBottomColor`](EditableTextBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderBottomLeftRadius`](EditableTextBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderBottomRightRadius`](EditableTextBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderBottomWidth`](EditableTextBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderColor`](EditableTextBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderLeftColor`](EditableTextBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderLeftWidth`](EditableTextBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderRadius`](EditableTextBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderRightColor`](EditableTextBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderRightWidth`](EditableTextBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderTopColor`](EditableTextBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderTopLeftRadius`](EditableTextBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderTopRightRadius`](EditableTextBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderTopWidth`](EditableTextBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`borderWidth`](EditableTextBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`boxShadow`](EditableTextBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`className`](EditableTextBase.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`col`](EditableTextBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) Gets or sets the color of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`color`](EditableTextBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`colSpan`](EditableTextBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`column`](EditableTextBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`columnSpan`](EditableTextBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`cssClasses`](EditableTextBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`cssPseudoClasses`](EditableTextBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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 [`EditableTextBase`](EditableTextBase.md).[`cssType`](EditableTextBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`defaultVisualState`](EditableTextBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`direction`](EditableTextBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`dock`](EditableTextBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`domNode`](EditableTextBase.md#domnode) *** ### editable ```ts editable: boolean; ``` Defined in: [ui/editable-text-base/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L73) Gets or sets whether the instance is editable. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`editable`](EditableTextBase.md#editable) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveBorderBottomWidth`](EditableTextBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveBorderLeftWidth`](EditableTextBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveBorderRightWidth`](EditableTextBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveBorderTopWidth`](EditableTextBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveColumnGap`](EditableTextBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveHeight`](EditableTextBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveLeft`](EditableTextBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMarginBottom`](EditableTextBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMarginLeft`](EditableTextBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMarginRight`](EditableTextBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMarginTop`](EditableTextBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMaxHeight`](EditableTextBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMaxWidth`](EditableTextBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMinHeight`](EditableTextBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveMinWidth`](EditableTextBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveRowGap`](EditableTextBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveTop`](EditableTextBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectiveWidth`](EditableTextBase.md#effectivewidth) *** ### enableWritingToolsEvents ```ts enableWritingToolsEvents: boolean; ``` Defined in: [ui/text-view/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-view/index.d.ts#L43) (iOS Only) Allow Apple Intelligence writing tools to emit text changes on each alteration instead of after the final change (default). *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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 [`EditableTextBase`](EditableTextBase.md).[`flex`](EditableTextBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`flexFlow`](EditableTextBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`flexGrow`](EditableTextBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`flexShrink`](EditableTextBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`flexWrapBefore`](EditableTextBase.md#flexwrapbefore) *** ### fontFamily ```ts fontFamily: string; ``` Defined in: [ui/text-base/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L40) Gets or sets font-family style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`fontFamily`](EditableTextBase.md#fontfamily) *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/text-base/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L47) Gets or sets font-size style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`fontSize`](EditableTextBase.md#fontsize) *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/text-base/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L54) Gets or sets font-style style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`fontStyle`](EditableTextBase.md#fontstyle) *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/text-base/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L61) Gets or sets font-weight style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`fontWeight`](EditableTextBase.md#fontweight) *** ### formattedText ```ts formattedText: FormattedString; ``` Defined in: [ui/text-base/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L33) Gets or sets a formatted string. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`formattedText`](EditableTextBase.md#formattedtext) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`height`](EditableTextBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`hidden`](EditableTextBase.md#hidden) *** ### hint ```ts hint: string; ``` Defined in: [ui/editable-text-base/index.d.ts:87](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L87) Gets or sets the placeholder text. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`hint`](EditableTextBase.md#hint) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`horizontalAlignment`](EditableTextBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`id`](EditableTextBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`ignoreTouchAnimation`](EditableTextBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/text-view/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-view/index.d.ts#L26) Gets the native iOS [UITextView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextView_Class/) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`EditableTextBase`](EditableTextBase.md).[`ios`](EditableTextBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosAccessibilityAdjustsFontSize`](EditableTextBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosAccessibilityMaxFontScale`](EditableTextBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosAccessibilityMinFontScale`](EditableTextBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosGlassEffect`](EditableTextBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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 [`EditableTextBase`](EditableTextBase.md).[`iosIgnoreSafeArea`](EditableTextBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosOverflowSafeArea`](EditableTextBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosOverflowSafeAreaEnabled`](EditableTextBase.md#iosoverflowsafeareaenabled) *** ### iosTextAnimation ```ts iosTextAnimation: boolean | "inherit"; ``` Defined in: [ui/text-base/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`iosTextAnimation`](EditableTextBase.md#iostextanimation) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`isCollapsed`](EditableTextBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`isEnabled`](EditableTextBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) Gets if layout is valid. This is a read-only property. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`isLayoutValid`](EditableTextBase.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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 [`EditableTextBase`](EditableTextBase.md).[`isUserInteractionEnabled`](EditableTextBase.md#isuserinteractionenabled) *** ### isWritingToolsActive ```ts isWritingToolsActive: boolean; ``` Defined in: [ui/text-view/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-view/index.d.ts#L38) (iOS Only) Are Apple Intelligence writing tools active *** ### keyboardType ```ts keyboardType: KeyboardInputType; ``` Defined in: [ui/editable-text-base/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L38) Gets or sets the soft keyboard type. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`keyboardType`](EditableTextBase.md#keyboardtype) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`left`](EditableTextBase.md#left) *** ### letterSpacing ```ts letterSpacing: number; ``` Defined in: [ui/text-base/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L68) Gets or sets letterSpace style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`letterSpacing`](EditableTextBase.md#letterspacing) *** ### lineHeight ```ts lineHeight: number; ``` Defined in: [ui/text-base/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L75) Gets or sets lineHeight style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`lineHeight`](EditableTextBase.md#lineheight) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) Gets or sets margin style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`margin`](EditableTextBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`marginBottom`](EditableTextBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`marginLeft`](EditableTextBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`marginRight`](EditableTextBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`marginTop`](EditableTextBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`maxHeight`](EditableTextBase.md#maxheight) *** ### maxLength ```ts maxLength: number; ``` Defined in: [ui/editable-text-base/index.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L94) Limits input to a certain number of characters. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`maxLength`](EditableTextBase.md#maxlength) *** ### maxLines ```ts maxLines: number; ``` Defined in: [ui/text-view/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-view/index.d.ts#L33) Limits input to a certain number of lines. #### Ns Property #### Overrides [`EditableTextBase`](EditableTextBase.md).[`maxLines`](EditableTextBase.md#maxlines) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`maxWidth`](EditableTextBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`minHeight`](EditableTextBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`minWidth`](EditableTextBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`modal`](EditableTextBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) Native background states. This is a read-only property. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`nativeBackgroundState`](EditableTextBase.md#nativebackgroundstate) *** ### nativeTextViewProtected ```ts readonly nativeTextViewProtected: any; ``` Defined in: [ui/text-base/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`nativeTextViewProtected`](EditableTextBase.md#nativetextviewprotected) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`nativeViewProtected`](EditableTextBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`opacity`](EditableTextBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`order`](EditableTextBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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 [`EditableTextBase`](EditableTextBase.md).[`originX`](EditableTextBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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 [`EditableTextBase`](EditableTextBase.md).[`originY`](EditableTextBase.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.1.0-core/packages/core/ui/text-base/index.d.ts#L139) Gets or sets padding style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`padding`](EditableTextBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/text-base/index.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L146) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`paddingBottom`](EditableTextBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/text-base/index.d.ts:153](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L153) Specify the left padding of this layout. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`paddingLeft`](EditableTextBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/text-base/index.d.ts:160](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L160) Specify the right padding of this layout. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`paddingRight`](EditableTextBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/text-base/index.d.ts:167](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L167) Specify the top padding of this layout. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`paddingTop`](EditableTextBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`parent`](EditableTextBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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 [`EditableTextBase`](EditableTextBase.md).[`perspective`](EditableTextBase.md#perspective) *** ### placeholderColor ```ts placeholderColor: Color; ``` Defined in: [ui/editable-text-base/index.d.ts:101](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L101) Gets or sets the color of the placeholder text #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`placeholderColor`](EditableTextBase.md#placeholdercolor) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`recycleNativeView`](EditableTextBase.md#recyclenativeview) *** ### returnKeyType ```ts returnKeyType: ReturnKeyButtonType; ``` Defined in: [ui/editable-text-base/index.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L45) Gets or sets the soft keyboard return key flavor. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`returnKeyType`](EditableTextBase.md#returnkeytype) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`reusable`](EditableTextBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`rotate`](EditableTextBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`rotateX`](EditableTextBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`rotateY`](EditableTextBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`row`](EditableTextBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`rowSpan`](EditableTextBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`scaleX`](EditableTextBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`scaleY`](EditableTextBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`sharedTransitionIgnore`](EditableTextBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`sharedTransitionTag`](EditableTextBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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 [`EditableTextBase`](EditableTextBase.md).[`statusBarStyle`](EditableTextBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`testID`](EditableTextBase.md#testid) *** ### text ```ts text: string; ``` Defined in: [ui/text-base/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L26) Gets or sets the text. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`text`](EditableTextBase.md#text) *** ### textAlignment ```ts textAlignment: TextAlignmentType; ``` Defined in: [ui/text-base/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L82) Gets or sets text-alignment style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textAlignment`](EditableTextBase.md#textalignment) *** ### textDecoration ```ts textDecoration: TextDecorationType; ``` Defined in: [ui/text-base/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L89) Gets or sets text decorations style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textDecoration`](EditableTextBase.md#textdecoration) *** ### textOverflow ```ts textOverflow: TextOverflowType; ``` Defined in: [ui/text-base/index.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L125) Gets or sets text-overflow style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textOverflow`](EditableTextBase.md#textoverflow) *** ### textShadow ```ts textShadow: ShadowCSSValues; ``` Defined in: [ui/text-base/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L103) Gets or sets text shadow style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textShadow`](EditableTextBase.md#textshadow) *** ### textStroke ```ts textStroke: StrokeCSSValues; ``` Defined in: [ui/text-base/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L111) Gets or sets text stroke style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textStroke`](EditableTextBase.md#textstroke) *** ### textTransform ```ts textTransform: TextTransformType; ``` Defined in: [ui/text-base/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L96) Gets or sets text transform style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textTransform`](EditableTextBase.md#texttransform) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`top`](EditableTextBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`touchAnimation`](EditableTextBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`touchDelay`](EditableTextBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`transitionId`](EditableTextBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`translateX`](EditableTextBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`translateY`](EditableTextBase.md#translatey) *** ### updateTextTrigger ```ts updateTextTrigger: UpdateTextTriggerType; ``` Defined in: [ui/editable-text-base/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`updateTextTrigger`](EditableTextBase.md#updatetexttrigger) *** ### valueFormatter ```ts valueFormatter: (value: string) => string; ``` Defined in: [ui/editable-text-base/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`valueFormatter`](EditableTextBase.md#valueformatter) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`verticalAlignment`](EditableTextBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`viewController`](EditableTextBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`visibility`](EditableTextBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) visionOS only #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`visionHoverStyle`](EditableTextBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) visionOS only #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`visionIgnoreHoverStyle`](EditableTextBase.md#visionignorehoverstyle) *** ### whiteSpace ```ts whiteSpace: WhiteSpaceType; ``` Defined in: [ui/text-base/index.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L118) Gets or sets white space style property. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`whiteSpace`](EditableTextBase.md#whitespace) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`width`](EditableTextBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityBlurEvent`](EditableTextBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityFocusChangedEvent`](EditableTextBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityFocusEvent`](EditableTextBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityPerformEscapeEvent`](EditableTextBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`androidOverflowInsetEvent`](EditableTextBase.md#androidoverflowinsetevent) *** ### blurEvent ```ts static blurEvent: string; ``` Defined in: [ui/editable-text-base/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L19) String value used when hooking to the blur event. #### Ns Event blurEvent #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`blurEvent`](EditableTextBase.md#blurevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`closedModallyEvent`](EditableTextBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`createdEvent`](EditableTextBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`disposeNativeViewEvent`](EditableTextBase.md#disposenativeviewevent) *** ### focusEvent ```ts static focusEvent: string; ``` Defined in: [ui/editable-text-base/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L25) String value used when hooking to the focus event. #### Ns Event focusEvent #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`focusEvent`](EditableTextBase.md#focusevent) *** ### iosTextAnimationFallback ```ts static iosTextAnimationFallback: boolean; ``` Defined in: [ui/text-base/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L179) The value used when the iosTextAnimation is set to 'inherit' #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`iosTextAnimationFallback`](EditableTextBase.md#iostextanimationfallback) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`layoutChangedEvent`](EditableTextBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`loadedEvent`](EditableTextBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`propertyChangeEvent`](EditableTextBase.md#propertychangeevent) *** ### returnPressEvent ```ts static returnPressEvent: string; ``` Defined in: [ui/text-view/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-view/index.d.ts#L16) String value used when hooking to the returnPress event. #### Ns Event returnPress *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`showingModallyEvent`](EditableTextBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`shownModallyEvent`](EditableTextBase.md#shownmodallyevent) *** ### textChangeEvent ```ts static textChangeEvent: string; ``` Defined in: [ui/editable-text-base/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L31) String value used when hooking to the textChange event. #### Ns Event textChangeEvent #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`textChangeEvent`](EditableTextBase.md#textchangeevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`unloadedEvent`](EditableTextBase.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.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundPosition`](EditableTextBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundRepeat`](EditableTextBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`backgroundSize`](EditableTextBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`class`](EditableTextBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectivePaddingBottom`](EditableTextBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectivePaddingLeft`](EditableTextBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectivePaddingRight`](EditableTextBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`effectivePaddingTop`](EditableTextBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`isLoaded`](EditableTextBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`nativeView`](EditableTextBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`page`](EditableTextBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`parentNode`](EditableTextBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`style`](EditableTextBase.md#style) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`typeName`](EditableTextBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`visualState`](EditableTextBase.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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_addView`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_addViewCore`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_addViewToNativeVisualTree`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_applyGlassEffect`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_applyXmlAttribute`](EditableTextBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_batchUpdate`](EditableTextBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_childIndexToNativeChildIndex`](EditableTextBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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 [`EditableTextBase`](EditableTextBase.md).[`_closeAllModalViewsInternal`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_createPropertyChangeData`](EditableTextBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_dialogClosed`](EditableTextBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_eachLayoutView`](EditableTextBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_emit`](EditableTextBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_getNativeViewsCount`](EditableTextBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_getRootModalHost`](EditableTextBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_getRootModalViews`](EditableTextBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_getValue`](EditableTextBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_handleLivesync`](EditableTextBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_hasAncestorView`](EditableTextBase.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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_hideNativeModalView`](EditableTextBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_inheritStyles`](EditableTextBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_inheritStyleScope`](EditableTextBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_layoutParent`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_observe`](EditableTextBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_onAttachedToWindow`](EditableTextBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_onDetachedFromWindow`](EditableTextBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_onRootViewReset`](EditableTextBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_onSizeChanged`](EditableTextBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_parentChanged`](EditableTextBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_raiseLayoutChangedEvent`](EditableTextBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_raiseShowingModallyEvent`](EditableTextBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_raiseShownModallyEvent`](EditableTextBase.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_removeView`](EditableTextBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_removeViewCore`](EditableTextBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_removeViewFromNativeVisualTree`](EditableTextBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_resumeNativeUpdates`](EditableTextBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_setDefaultPaddings`](EditableTextBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_setupAsRootView`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_setupUI`](EditableTextBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_setValue`](EditableTextBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_shouldDelayLayout`](EditableTextBase.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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_showNativeModalView`](EditableTextBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_suspendNativeUpdates`](EditableTextBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`_tearDownUI`](EditableTextBase.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`_updateStyleScope`](EditableTextBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityAnnouncement`](EditableTextBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) Announce screen changed #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`accessibilityScreenChanged`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`addEventListener`](EditableTextBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`addPseudoClass`](EditableTextBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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 [`EditableTextBase`](EditableTextBase.md).[`animate`](EditableTextBase.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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`bind`](EditableTextBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`callLoaded`](EditableTextBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`callUnloaded`](EditableTextBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`closeModal`](EditableTextBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`createAnimation`](EditableTextBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`createNativeView`](EditableTextBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`deletePseudoClass`](EditableTextBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`destroyNode`](EditableTextBase.md#destroynode) *** ### dismissSoftInput() ```ts dismissSoftInput(): void; ``` Defined in: [ui/editable-text-base/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L112) Hides the soft input method, ususally a soft keyboard. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`dismissSoftInput`](EditableTextBase.md#dismisssoftinput) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`disposeNativeView`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`eachChild`](EditableTextBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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 [`EditableTextBase`](EditableTextBase.md).[`eachChildView`](EditableTextBase.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`ensureDomNode`](EditableTextBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`focus`](EditableTextBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`get`](EditableTextBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getActualSize`](EditableTextBase.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getClosestWindow`](EditableTextBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getEffectivePaddingShorthand`](EditableTextBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getGestureObservers`](EditableTextBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getLocationInWindow`](EditableTextBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getLocationOnScreen`](EditableTextBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getLocationRelativeTo`](EditableTextBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) Returns the raw height component. #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getMeasuredHeight`](EditableTextBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getMeasuredState`](EditableTextBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getMeasuredWidth`](EditableTextBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getNativeWindow`](EditableTextBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`getSafeAreaInsets`](EditableTextBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`getViewByDomId`](EditableTextBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`getViewById`](EditableTextBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`hasGestureObservers`](EditableTextBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`hasListeners`](EditableTextBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`initNativeView`](EditableTextBase.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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 [`EditableTextBase`](EditableTextBase.md).[`layout`](EditableTextBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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 [`EditableTextBase`](EditableTextBase.md).[`layoutNativeView`](EditableTextBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`loadView`](EditableTextBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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 [`EditableTextBase`](EditableTextBase.md).[`measure`](EditableTextBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`notify`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`notifyPropertyChange`](EditableTextBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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 [`EditableTextBase`](EditableTextBase.md).[`off`](EditableTextBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`onBackPressed`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`once`](EditableTextBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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 [`EditableTextBase`](EditableTextBase.md).[`onLayout`](EditableTextBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`onLoaded`](EditableTextBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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 [`EditableTextBase`](EditableTextBase.md).[`onMeasure`](EditableTextBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`onResumeNativeUpdates`](EditableTextBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`onUnloaded`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`removeEventListener`](EditableTextBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`requestLayout`](EditableTextBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`resetNativeView`](EditableTextBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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 [`EditableTextBase`](EditableTextBase.md).[`sendAccessibilityEvent`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`set`](EditableTextBase.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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`setAccessibilityIdentifier`](EditableTextBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`setInlineStyle`](EditableTextBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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 [`EditableTextBase`](EditableTextBase.md).[`setMeasuredDimension`](EditableTextBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`setNativeView`](EditableTextBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) Android only to set the touch listener #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`setOnTouchListener`](EditableTextBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`setProperty`](EditableTextBase.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.1.0-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` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`setSelection`](EditableTextBase.md#setselection) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`showModal`](EditableTextBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`toString`](EditableTextBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`unbind`](EditableTextBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`unloadView`](EditableTextBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`updateStatusBarStyle`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`addEventListener`](EditableTextBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`EditableTextBase`](EditableTextBase.md).[`combineMeasuredStates`](EditableTextBase.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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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 [`EditableTextBase`](EditableTextBase.md).[`layoutChild`](EditableTextBase.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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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 [`EditableTextBase`](EditableTextBase.md).[`measureChild`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`off`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`on`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`once`](EditableTextBase.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.1.0-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 [`EditableTextBase`](EditableTextBase.md).[`removeEventListener`](EditableTextBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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 [`EditableTextBase`](EditableTextBase.md).[`resolveSizeAndState`](EditableTextBase.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/TimePicker.md' description: Represents an time picker. --- Defined in: [ui/time-picker/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L9) Represents an time picker. ## Ns View TimePicker ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new TimePicker(): TimePicker; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `TimePicker` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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/time-picker/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L20) Gets the native [android.widget.TimePicker](http://developer.android.com/reference/android/widget/TimePicker.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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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) *** ### hour ```ts hour: number; ``` Defined in: [ui/time-picker/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L32) Gets or sets the time hour. #### Ns Property *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/time-picker/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L25) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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/time-picker/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L93) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxHour ```ts maxHour: number; ``` Defined in: [ui/time-picker/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L53) Gets or sets the max time hour. #### Ns Property *** ### maxMinute ```ts maxMinute: number; ``` Defined in: [ui/time-picker/index.d.ts:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L60) Gets or sets the max time minute. #### Ns Property *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minHour ```ts minHour: number; ``` Defined in: [ui/time-picker/index.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L67) Gets or sets the min time hour. #### Ns Property *** ### minMinute ```ts minMinute: number; ``` Defined in: [ui/time-picker/index.d.ts:74](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L74) Gets or sets the min time minute. #### Ns Property *** ### minute ```ts minute: number; ``` Defined in: [ui/time-picker/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L39) Gets or sets the time minute. #### Ns Property *** ### minuteInterval ```ts minuteInterval: number; ``` Defined in: [ui/time-picker/index.d.ts:81](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L81) Gets or sets the minute interval. #### Ns Property *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### time ```ts time: Date; ``` Defined in: [ui/time-picker/index.d.ts:46](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L46) Gets or sets the time. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### timeChangeEvent ```ts static timeChangeEvent: string; ``` Defined in: [ui/time-picker/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/time-picker/index.d.ts#L15) String value used when hooking to the timeChange event. #### Ns Event timeChange *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/TouchManager.md' description: >- Manage interactivity in your apps easily with TouchManager. Store reusable down/up animation settings for touches as well as optionally enable automatic tap ... --- Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) 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. ## Constructors ### Constructor ```ts new TouchManager(): TouchManager; ``` #### Returns `TouchManager` ## Properties ### animations ```ts static animations: TouchAnimationOptions; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) Define reusable touch animations to use on views with touchAnimation defined or with enableGlobalTapAnimations on. *** ### enableGlobalHoverWhereTap ```ts static enableGlobalHoverWhereTap: boolean; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) (visionOS Only) Enable hoverStyle for all tap bindings in the UI. *** ### enableGlobalTapAnimations ```ts static enableGlobalTapAnimations: boolean; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) Enable animations for all tap bindings in the UI. *** ### touchAnimationDefinitions ```ts static touchAnimationDefinitions: { animation: Animation; type: TouchAnimationTypes; view: View; }[]; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) When using NativeScript AnimationDefinition's for touch animations this will contain any instances for finer grain control of starting/stopping under various circumstances. The TouchManager uses this internally but makes public for other versatility if needed. #### animation ```ts animation: Animation; ``` #### type ```ts type: TouchAnimationTypes; ``` #### view ```ts view: View; ``` *** ### touchHandlers ```ts static touchHandlers: { handler: any; view: View; }[]; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) Native Touch handlers (iOS only) registered with the view through the TouchManager. The TouchManager uses this internally but makes public for other versatility if needed. #### handler ```ts handler: any; ``` #### view ```ts view: View; ``` *** ### visionHoverOptions ```ts static visionHoverOptions: { [key: string]: VisionHoverOptions; }; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) Define reusable hover styles keyed by name to use throughout your UI. #### Index Signature ```ts [key: string]: VisionHoverOptions ``` *** ### visionHoverStyleCache ```ts static visionHoverStyleCache: { [key: string]: UIHoverStyle; }; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) Used internally - defines reusable UIHoverStyle's #### Index Signature ```ts [key: string]: UIHoverStyle ``` ## Methods ### addAnimations() ```ts static addAnimations(view: View): void; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) The TouchManager uses this internally. Adds touch animations to view based upon it's touchAnimation property or TouchManager.animations. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | NativeScript view instance | #### Returns `void` *** ### addHoverStyle() ```ts static addHoverStyle(view: View): void; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) The TouchManager uses this internally. Adds visionOS hover styles to views based upon it's visionHoverStyle property #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | NativeScript view instance | #### Returns `void` *** ### startAnimationForType() ```ts static startAnimationForType(view: View, type: TouchAnimationTypes): void; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `type` | `TouchAnimationTypes` | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/Transition.md' --- Defined in: [ui/transition/index.d.ts:22](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L22) ## Extended by * [`ModalTransition`](ModalTransition.md) * [`PageTransition`](PageTransition.md) * [`FadeTransition`](FadeTransition.md) * [`SlideTransition`](SlideTransition.md) ## Constructors ### Constructor ```ts new Transition(duration?: number, nativeCurve?: any): Transition; ``` Defined in: [ui/transition/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L40) #### Parameters | Parameter | Type | | ------ | ------ | | `duration?` | `number` | | `nativeCurve?` | `any` | #### Returns `Transition` ## Properties ### id ```ts id: number; ``` Defined in: [ui/transition/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L23) *** ### interactiveController? ```ts optional interactiveController?: any; ``` Defined in: [ui/transition/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L29) *** ### name? ```ts optional name?: string; ``` Defined in: [ui/transition/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L27) (Optional) Provide a unique name to identify this transition *** ### presented? ```ts optional presented?: any; ``` Defined in: [ui/transition/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L30) *** ### presenting? ```ts optional presenting?: any; ``` Defined in: [ui/transition/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L31) *** ### sharedElements? ```ts optional sharedElements?: { _allPresentingViews?: View[]; independent?: SharedElementSettings & { isPresented?: boolean; }[]; presented?: SharedElementSettings[]; presenting?: SharedElementSettings[]; }; ``` Defined in: [ui/transition/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L32) #### \_allPresentingViews? ```ts optional _allPresentingViews?: View[]; ``` #### independent? ```ts optional independent?: SharedElementSettings & { isPresented?: boolean; }[]; ``` #### presented? ```ts optional presented?: SharedElementSettings[]; ``` #### presenting? ```ts optional presenting?: SharedElementSettings[]; ``` *** ### transitionController? ```ts optional transitionController?: any; ``` Defined in: [ui/transition/index.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L28) *** ### AndroidTransitionType? ```ts static optional AndroidTransitionType?: { enter?: string; exit?: string; popEnter?: string; popExit?: string; }; ``` Defined in: [ui/transition/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L39) #### enter? ```ts optional enter?: string; ``` #### exit? ```ts optional exit?: string; ``` #### popEnter? ```ts optional popEnter?: string; ``` #### popExit? ```ts optional popExit?: string; ``` ## Methods ### androidFragmentTransactionCallback()? ```ts optional androidFragmentTransactionCallback( fragmentTransaction: any, currentEntry: BackstackEntry, newEntry: BackstackEntry): void; ``` Defined in: [ui/transition/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L59) #### Parameters | Parameter | Type | | ------ | ------ | | `fragmentTransaction` | `any` | | `currentEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | | `newEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `void` *** ### animateIOSTransition() ```ts animateIOSTransition( transitionContext: any, fromViewCtrl: any, toViewCtrl: any, operation: any): void; ``` Defined in: [ui/transition/index.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L44) #### Parameters | Parameter | Type | | ------ | ------ | | `transitionContext` | `any` | | `fromViewCtrl` | `any` | | `toViewCtrl` | `any` | | `operation` | `any` | #### Returns `void` *** ### createAndroidAnimator() ```ts createAndroidAnimator(transitionType: string): any; ``` Defined in: [ui/transition/index.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L45) #### Parameters | Parameter | Type | | ------ | ------ | | `transitionType` | `string` | #### Returns `any` *** ### getCurve() ```ts getCurve(): any; ``` Defined in: [ui/transition/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L43) #### Returns `any` *** ### getDuration() ```ts getDuration(): number; ``` Defined in: [ui/transition/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L41) #### Returns `number` *** ### iosDismissedController()? ```ts optional iosDismissedController(dismissed: any): any; ``` Defined in: [ui/transition/index.d.ts:49](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L49) #### Parameters | Parameter | Type | | ------ | ------ | | `dismissed` | `any` | #### Returns `any` *** ### iosInteractionDismiss()? ```ts optional iosInteractionDismiss(animator: any): any; ``` Defined in: [ui/transition/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L53) #### Parameters | Parameter | Type | | ------ | ------ | | `animator` | `any` | #### Returns `any` *** ### iosInteractionPresented()? ```ts optional iosInteractionPresented(animator: any): any; ``` Defined in: [ui/transition/index.d.ts:55](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L55) #### Parameters | Parameter | Type | | ------ | ------ | | `animator` | `any` | #### Returns `any` *** ### iosNavigatedController()? ```ts optional iosNavigatedController( navigationController: any, operation: number, fromVC: any, toVC: any): any; ``` Defined in: [ui/transition/index.d.ts:57](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L57) #### Parameters | Parameter | Type | | ------ | ------ | | `navigationController` | `any` | | `operation` | `number` | | `fromVC` | `any` | | `toVC` | `any` | #### Returns `any` *** ### iosPresentedController()? ```ts optional iosPresentedController( presented: any, presenting: any, source: any): any; ``` Defined in: [ui/transition/index.d.ts:51](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L51) #### Parameters | Parameter | Type | | ------ | ------ | | `presented` | `any` | | `presenting` | `any` | | `source` | `any` | #### Returns `any` *** ### setDuration() ```ts setDuration(value: number): void; ``` Defined in: [ui/transition/index.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L42) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `void` *** ### setupInteractiveGesture()? ```ts optional setupInteractiveGesture(startCallback: () => void, view: View): void; ``` Defined in: [ui/transition/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/index.d.ts#L47) #### Parameters | Parameter | Type | | ------ | ------ | | `startCallback` | () => `void` | | `view` | [`View`](View.md) | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/View.md' description: >- 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 c... --- Defined in: [ui/core/view/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L54) 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. ## Ns View View ## Extends * `ViewCommon` ## Extended by * [`IOSView`](../interfaces/IOSView.md) * [`ActionBar`](ActionBar.md) * [`ActivityIndicator`](ActivityIndicator.md) * [`ContainerView`](ContainerView.md) * [`DatePicker`](DatePicker.md) * [`HtmlView`](HtmlView.md) * [`Image`](Image.md) * [`ListPicker`](ListPicker.md) * [`ListView`](ListView.md) * [`Placeholder`](Placeholder.md) * [`Progress`](Progress.md) * [`SearchBar`](SearchBar.md) * [`SegmentedBar`](SegmentedBar.md) * [`Slider`](Slider.md) * [`Switch`](Switch.md) * [`TabView`](TabView.md) * [`TextBase`](TextBase.md) * [`TimePicker`](TimePicker.md) * [`WebView`](WebView.md) ## Constructors ### Constructor ```ts new View(): View; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `View` #### Inherited from ```ts ViewCommon.constructor ``` ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Overrides ```ts ViewCommon._androidContentDescriptionUpdated ``` *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._automaticallyAdjustsScrollViewInsets ``` *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts ViewCommon._closeModalCallback ``` *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._context ``` *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._cssState ``` *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._defaultPaddingBottom ``` *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._defaultPaddingLeft ``` *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._defaultPaddingRight ``` *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._defaultPaddingTop ``` *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._domId ``` *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._ignoreFlexMinWidthHeightReset ``` *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._isAddedToNativeVisualTree ``` *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._isPaddingRelative ``` *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._isStyleScopeHost ``` *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Overrides ```ts ViewCommon._nativeWindow ``` *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._oldBottom ``` *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._oldLeft ``` *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._oldRight ``` *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._oldTop ``` *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon._styleScope ``` *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._suspendNativeUpdatesCount ``` *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) Hide the view and its children from the a11y service #### Ns Property #### Overrides ```ts ViewCommon.accessibilityHidden ``` *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Overrides ```ts ViewCommon.accessibilityHint ``` *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Overrides ```ts ViewCommon.accessibilityIdentifier ``` *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Overrides ```ts ViewCommon.accessibilityIgnoresInvertColors ``` *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) Short description of the element, ideally one word. #### Ns Property #### Overrides ```ts ViewCommon.accessibilityLabel ``` *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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 #### Overrides ```ts ViewCommon.accessibilityLanguage ``` *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Overrides ```ts ViewCommon.accessibilityLiveRegion ``` *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Overrides ```ts ViewCommon.accessibilityMediaSession ``` *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) Which role should this view be treated by the a11y service? #### Ns Property #### Overrides ```ts ViewCommon.accessibilityRole ``` *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) Which state should this view be treated as by the a11y service? #### Ns Property #### Overrides ```ts ViewCommon.accessibilityState ``` *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) Current value of the element in a localized string. #### Ns Property #### Overrides ```ts ViewCommon.accessibilityValue ``` *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Overrides ```ts ViewCommon.accessible ``` *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from ```ts ViewCommon.alignSelf ``` *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Overrides ```ts ViewCommon.android ``` *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Overrides ```ts ViewCommon.androidDynamicElevationOffset ``` *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) Gets or sets the elevation of the android view. #### Ns Property #### Overrides ```ts ViewCommon.androidElevation ``` *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts ViewCommon.androidOverflowEdge ``` *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Overrides ```ts ViewCommon.automationText ``` *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) Gets or sets the background style property. #### Ns Property #### Overrides ```ts ViewCommon.background ``` *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) Gets or sets the background color of the view. #### Ns Property #### Overrides ```ts ViewCommon.backgroundColor ``` *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) Gets or sets the background image of the view. #### Ns Property #### Overrides ```ts ViewCommon.backgroundImage ``` *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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 #### Overrides ```ts ViewCommon.bindingContext ``` *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) Gets or sets the bottom border color of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderBottomColor ``` *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) Gets or sets the bottom left border radius of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderBottomLeftRadius ``` *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) Gets or sets the bottom right border radius of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderBottomRightRadius ``` *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) Gets or sets the bottom border width of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderBottomWidth ``` *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) Gets or sets the border color of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderColor ``` *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) Gets or sets the left border color of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderLeftColor ``` *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) Gets or sets the left border width of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderLeftWidth ``` *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) Gets or sets the border radius of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderRadius ``` *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) Gets or sets the right border color of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderRightColor ``` *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) Gets or sets the right border width of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderRightWidth ``` *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) Gets or sets the top border color of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderTopColor ``` *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) Gets or sets the top left border radius of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderTopLeftRadius ``` *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) Gets or sets the top right border radius of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderTopRightRadius ``` *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) Gets or sets the top border width of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderTopWidth ``` *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) Gets or sets the border width of the view. #### Ns Property #### Overrides ```ts ViewCommon.borderWidth ``` *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) Gets or sets the box shadow of the view. #### Ns Property #### Overrides ```ts ViewCommon.boxShadow ``` *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from ```ts ViewCommon.className ``` *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.col ``` *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) Gets or sets the color of the view. #### Ns Property #### Overrides ```ts ViewCommon.color ``` *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from ```ts ViewCommon.colSpan ``` *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.column ``` *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from ```ts ViewCommon.columnSpan ``` *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Overrides ```ts ViewCommon.cssClasses ``` *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Overrides ```ts ViewCommon.cssPseudoClasses ``` *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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. #### Overrides ```ts ViewCommon.cssType ``` *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from ```ts ViewCommon.defaultVisualState ``` *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) Gets or sets the layout direction of the view. #### Ns Property #### Overrides ```ts ViewCommon.direction ``` *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`LiquidGlassContainer`](LiquidGlassContainer.md).[`dock`](LiquidGlassContainer.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.domNode ``` *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveBorderBottomWidth ``` *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveBorderLeftWidth ``` *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveBorderRightWidth ``` *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveBorderTopWidth ``` *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveColumnGap ``` *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveHeight ``` *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveLeft ``` *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveMarginBottom ``` *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveMarginLeft ``` *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveMarginRight ``` *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveMarginTop ``` *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveMaxHeight ``` *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveMaxWidth ``` *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveMinHeight ``` *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveMinWidth ``` *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveRowGap ``` *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveTop ``` *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts ViewCommon.effectiveWidth ``` *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Overrides ```ts ViewCommon.flex ``` *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Overrides ```ts ViewCommon.flexFlow ``` *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.flexGrow ``` *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.flexShrink ``` *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.flexWrapBefore ``` *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) Gets or sets the desired height of the view. #### Ns Property #### Overrides ```ts ViewCommon.height ``` *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from ```ts ViewCommon.hidden ``` *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Overrides ```ts ViewCommon.horizontalAlignment ``` *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from ```ts ViewCommon.id ``` *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Overrides ```ts ViewCommon.ignoreTouchAnimation ``` *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Overrides ```ts ViewCommon.ios ``` *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) Defines whether accessibility font scale should affect font size. #### Ns Property #### Overrides ```ts ViewCommon.iosAccessibilityAdjustsFontSize ``` *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) Gets or sets the maximum accessibility font scale. #### Ns Property #### Overrides ```ts ViewCommon.iosAccessibilityMaxFontScale ``` *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) Gets or sets the minimum accessibility font scale. #### Ns Property #### Overrides ```ts ViewCommon.iosAccessibilityMinFontScale ``` *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) Set the iOS liquid glass effect style on the view. #### Ns Property #### Overrides ```ts ViewCommon.iosGlassEffect ``` *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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 #### Overrides ```ts ViewCommon.iosIgnoreSafeArea ``` *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Overrides ```ts ViewCommon.iosOverflowSafeArea ``` *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Overrides ```ts ViewCommon.iosOverflowSafeAreaEnabled ``` *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.isCollapsed ``` *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Overrides ```ts ViewCommon.isEnabled ``` *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) Gets if layout is valid. This is a read-only property. #### Overrides ```ts ViewCommon.isLayoutValid ``` *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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 #### Overrides ```ts ViewCommon.isUserInteractionEnabled ``` *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.left ``` *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) Gets or sets margin style property. #### Ns Property #### Overrides ```ts ViewCommon.margin ``` *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) Specifies extra space on the bottom side of this view. #### Ns Property #### Overrides ```ts ViewCommon.marginBottom ``` *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) Specifies extra space on the left side of this view. #### Ns Property #### Overrides ```ts ViewCommon.marginLeft ``` *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) Specifies extra space on the right side of this view. #### Ns Property #### Overrides ```ts ViewCommon.marginRight ``` *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Overrides ```ts ViewCommon.marginTop ``` *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Overrides ```ts ViewCommon.maxHeight ``` *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Overrides ```ts ViewCommon.maxWidth ``` *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) Gets or sets the minimum height the view may grow to. #### Ns Property #### Overrides ```ts ViewCommon.minHeight ``` *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Overrides ```ts ViewCommon.minWidth ``` *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) Returns the current modal view that this page is showing (is parent of), if any. #### Overrides ```ts ViewCommon.modal ``` *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) Native background states. This is a read-only property. *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.nativeViewProtected ``` *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) Gets or sets the opacity style property. #### Ns Property #### Overrides ```ts ViewCommon.opacity ``` *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.order ``` *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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 #### Overrides ```ts ViewCommon.originX ``` *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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 #### Overrides ```ts ViewCommon.originY ``` *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from ```ts ViewCommon.parent ``` *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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 #### Overrides ```ts ViewCommon.perspective ``` *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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 ViewCommon.reusable ``` *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Overrides ```ts ViewCommon.rotate ``` *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Overrides ```ts ViewCommon.rotateX ``` *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Overrides ```ts ViewCommon.rotateY ``` *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.row ``` *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from ```ts ViewCommon.rowSpan ``` *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Overrides ```ts ViewCommon.scaleX ``` *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Overrides ```ts ViewCommon.scaleY ``` *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from ```ts ViewCommon.sharedTransitionIgnore ``` *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.sharedTransitionTag ``` *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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 #### Overrides ```ts ViewCommon.statusBarStyle ``` *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### Ns Property #### Overrides ```ts ViewCommon.testID ``` *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.top ``` *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Overrides ```ts ViewCommon.touchAnimation ``` *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### Ns Property #### Overrides ```ts ViewCommon.touchDelay ``` *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from ```ts ViewCommon.transitionId ``` *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Overrides ```ts ViewCommon.translateX ``` *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Overrides ```ts ViewCommon.translateY ``` *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Overrides ```ts ViewCommon.verticalAlignment ``` *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from ```ts ViewCommon.viewController ``` *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) Gets or sets the visibility of the view. #### Ns Property #### Overrides ```ts ViewCommon.visibility ``` *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) visionOS only #### Ns Property #### Overrides ```ts ViewCommon.visionHoverStyle ``` *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) visionOS only #### Ns Property #### Overrides ```ts ViewCommon.visionIgnoreHoverStyle ``` *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) Gets or sets the desired width of the view. #### Ns Property #### Overrides ```ts ViewCommon.width ``` *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Overrides ```ts ViewCommon.accessibilityBlurEvent ``` *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Overrides ```ts ViewCommon.accessibilityFocusChangedEvent ``` *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Overrides ```ts ViewCommon.accessibilityFocusEvent ``` *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts ViewCommon.accessibilityPerformEscapeEvent ``` *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Overrides ```ts ViewCommon.androidOverflowInsetEvent ``` *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Overrides ```ts ViewCommon.closedModallyEvent ``` *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from ```ts ViewCommon.createdEvent ``` *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from ```ts ViewCommon.disposeNativeViewEvent ``` *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Overrides ```ts ViewCommon.layoutChangedEvent ``` *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from ```ts ViewCommon.loadedEvent ``` *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from ```ts ViewCommon.propertyChangeEvent ``` *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) String value used when hooking to showingModally event. #### Ns Event showingModally #### Overrides ```ts ViewCommon.showingModallyEvent ``` *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) String value used when hooking to shownModally event. #### Ns Event shownModally #### Overrides ```ts ViewCommon.shownModallyEvent ``` *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from ```ts ViewCommon.unloadedEvent ``` ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts ViewCommon.backgroundPosition ``` *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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 ViewCommon.backgroundRepeat ``` *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts ViewCommon.backgroundSize ``` *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from ```ts ViewCommon.class ``` *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts ViewCommon.effectivePaddingBottom ``` *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts ViewCommon.effectivePaddingLeft ``` *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts ViewCommon.effectivePaddingRight ``` *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts ViewCommon.effectivePaddingTop ``` *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from ```ts ViewCommon.isLoaded ``` *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from ```ts ViewCommon.nativeView ``` *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.page ``` *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from ```ts ViewCommon.parentNode ``` *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from ```ts ViewCommon.style ``` *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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 ViewCommon.textTransform ``` *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.typeName ``` *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from ```ts ViewCommon.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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from ```ts ViewCommon._addView ``` *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._addViewCore ``` *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._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.1.0-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 ViewCommon._applyGlassEffect ``` *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._applyXmlAttribute ``` *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._batchUpdate ``` *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from ```ts ViewCommon._childIndexToNativeChildIndex ``` *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Overrides ```ts ViewCommon._closeAllModalViewsInternal ``` *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._createPropertyChangeData ``` *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._dialogClosed ``` *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Overrides ```ts ViewCommon._eachLayoutView ``` *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from ```ts ViewCommon._emit ``` *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Overrides ```ts ViewCommon._getNativeViewsCount ``` *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Overrides ```ts ViewCommon._getRootModalHost ``` *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Overrides ```ts ViewCommon._getRootModalViews ``` *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Overrides ```ts ViewCommon._getValue ``` *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Overrides ```ts ViewCommon._handleLivesync ``` *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | `View` | #### Returns `boolean` #### Overrides ```ts ViewCommon._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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from ```ts ViewCommon._hideNativeModalView ``` *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts ViewCommon._inheritStyles ``` *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from ```ts ViewCommon._inheritStyleScope ``` *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts ViewCommon._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.1.0-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 ViewCommon._observe ``` *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) Called in android when native view is attached to window. #### Returns `void` #### Overrides ```ts ViewCommon._onAttachedToWindow ``` *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) Called in android when native view is dettached from window. #### Returns `void` #### Overrides ```ts ViewCommon._onDetachedFromWindow ``` *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._onRootViewReset ``` *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts ViewCommon._parentChanged ``` *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts ViewCommon._raiseLayoutChangedEvent ``` *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts ViewCommon._raiseShowingModallyEvent ``` *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts ViewCommon._raiseShownModallyEvent ``` *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._removeView ``` *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._removeViewCore ``` *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._removeViewFromNativeVisualTree ``` *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts ViewCommon._resumeNativeUpdates ``` *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from ```ts ViewCommon._setDefaultPaddings ``` *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from ```ts ViewCommon._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.1.0-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 ViewCommon._setupUI ``` *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Overrides ```ts ViewCommon._setValue ``` *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from ```ts ViewCommon._showNativeModalView ``` *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts ViewCommon._suspendNativeUpdates ``` *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon._tearDownUI ``` *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Overrides ```ts ViewCommon._updateStyleScope ``` *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Overrides ```ts ViewCommon.accessibilityAnnouncement ``` *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) Announce screen changed #### Returns `void` #### Overrides ```ts ViewCommon.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.1.0-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 ViewCommon.addEventListener ``` *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.addPseudoClass ``` *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Overrides ```ts ViewCommon.animate ``` *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from ```ts ViewCommon.bind ``` *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts ViewCommon.callLoaded ``` *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts ViewCommon.callUnloaded ``` *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.closeModal ``` *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Overrides ```ts ViewCommon.createAnimation ``` *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.createNativeView ``` *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.deletePseudoClass ``` *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.destroyNode ``` *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from ```ts ViewCommon.disposeNativeView ``` *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.eachChild ``` *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: `View`) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Overrides ```ts ViewCommon.eachChildView ``` *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from ```ts ViewCommon.ensureDomNode ``` *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Overrides ```ts ViewCommon.focus ``` *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from ```ts ViewCommon.get ``` *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Overrides ```ts ViewCommon.getActualSize ``` *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from ```ts ViewCommon.getClosestWindow ``` *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from ```ts ViewCommon.getEffectivePaddingShorthand ``` *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Overrides ```ts ViewCommon.getGestureObservers ``` *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Overrides ```ts ViewCommon.getLocationInWindow ``` *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Overrides ```ts ViewCommon.getLocationOnScreen ``` *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | `View` | #### Returns `Point` #### Overrides ```ts ViewCommon.getLocationRelativeTo ``` *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) Returns the raw height component. #### Returns `number` #### Overrides ```ts ViewCommon.getMeasuredHeight ``` *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Overrides ```ts ViewCommon.getMeasuredState ``` *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Overrides ```ts ViewCommon.getMeasuredWidth ``` *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Overrides ```ts ViewCommon.getNativeWindow ``` *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) Returns the iOS safe area insets of this view. #### Returns `Position` #### Overrides ```ts ViewCommon.getSafeAreaInsets ``` *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.getViewByDomId ``` *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.getViewById ``` *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) Android only check if gesture observers are attached #### Returns `boolean` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.hasListeners ``` *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from ```ts ViewCommon.initNativeView ``` *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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` #### Overrides ```ts ViewCommon.layout ``` *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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` #### Overrides ```ts ViewCommon.layoutNativeView ``` *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.loadView ``` *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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` #### Overrides ```ts ViewCommon.measure ``` *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.notify ``` *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.notifyPropertyChange ``` *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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` #### Overrides ```ts ViewCommon.off ``` *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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` ##### Overrides ```ts ViewCommon.on ``` #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Overrides ```ts ViewCommon.on ``` #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Overrides ```ts ViewCommon.on ``` #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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` ##### Overrides ```ts ViewCommon.on ``` #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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` ##### Overrides ```ts ViewCommon.on ``` #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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` ##### Overrides ```ts ViewCommon.on ``` #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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` ##### Overrides ```ts ViewCommon.on ``` *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Overrides ```ts ViewCommon.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.1.0-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 ViewCommon.once ``` *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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 ```ts ViewCommon.onLayout ``` *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts ViewCommon.onLoaded ``` *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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 ```ts ViewCommon.onMeasure ``` *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts ViewCommon.onResumeNativeUpdates ``` *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts ViewCommon.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.1.0-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 ViewCommon.removeEventListener ``` *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.requestLayout ``` *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from ```ts ViewCommon.resetNativeView ``` *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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. #### Overrides ```ts ViewCommon.sendAccessibilityEvent ``` *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.set ``` *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from ```ts ViewCommon.setAccessibilityIdentifier ``` *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from ```ts ViewCommon.setInlineStyle ``` *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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` #### Overrides ```ts ViewCommon.setMeasuredDimension ``` *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.setNativeView ``` *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) Android only to set the touch listener #### Returns `void` *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.setProperty ``` *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` #### Inherited from ```ts ViewCommon.showModal ``` *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from ```ts ViewCommon.toString ``` *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from ```ts ViewCommon.unbind ``` *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 ViewCommon.unloadView ``` *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from ```ts ViewCommon.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.1.0-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 ViewCommon.addEventListener ``` *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Overrides ```ts ViewCommon.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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | `View` | This parameter is not used. You can pass null. | | `child` | `View` | - | | `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 ```ts ViewCommon.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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | `View` | This parameter is not used. You can pass null. | | `child` | `View` | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Overrides ```ts ViewCommon.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.1.0-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 ViewCommon.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.1.0-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 ViewCommon.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.1.0-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 ViewCommon.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.1.0-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 ViewCommon.removeEventListener ``` *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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` #### Overrides ```ts ViewCommon.resolveSizeAndState ``` --- --- url: 'https://docs.nativescript.org/api/classes/ViewBase.md' --- Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ## Ns View ViewBase ## Extends * [`Observable`](Observable.md) ## Extended by * [`ActionItem`](ActionItem.md) * [`SegmentedBarItem`](SegmentedBarItem.md) * [`TabViewItem`](TabViewItem.md) * [`FormattedString`](FormattedString.md) * [`Span`](Span.md) ## Constructors ### Constructor ```ts new ViewBase(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `ViewBase` #### Overrides [`Observable`](Observable.md).[`constructor`](Observable.md#constructor) ## Properties ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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. *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Ns Property *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Ns Property *** ### cssClasses ```ts readonly cssClasses: Set; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### cssPseudoClasses ```ts readonly cssPseudoClasses: Set; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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. *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded ## Accessors ### android #### Get Signature ```ts get android(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` *** ### cssType #### Get Signature ```ts get cssType(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the CSS fully qualified type name used for selector matching. ##### Returns `string` #### Set Signature ```ts set cssType(value: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` *** ### ios #### Get Signature ```ts get ios(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns `ViewBase` #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | `ViewBase` | ##### Returns `void` *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `ViewBase` | | `atIndex?` | `number` | #### Returns `void` *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` | | `atIndex?` | `number` | #### Returns `void` *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` | | `atIndex?` | `number` | #### Returns `boolean` *** ### \_addVisualState() ```ts _addVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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. *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`_emit`](Observable.md#emit) *** ### ~~\_goToVisualState()~~ ```ts _goToVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Deprecated Use View.\_addVisualState() and View.\_removeVisualState() instead. *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `ViewBase` | #### Returns `void` *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | `ViewBase` | #### Returns `void` *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` | #### Returns `void` *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` | #### Returns `void` *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` | #### Returns `void` *** ### \_removeVisualState() ```ts _removeVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` *** ### \_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.1.0-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` *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` *** ### 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.1.0-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) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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. *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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. *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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 *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: `ViewBase`) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `ViewBase` | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `ViewBase` | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | `ViewBase` | to load. | #### Returns `void` *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### 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.1.0-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) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Resets properties/listeners set to the native view. #### Returns `void` *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` #### Overrides [`Observable`](Observable.md).[`set`](Observable.md#set) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### 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.1.0-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` | View instance to be shown modally. | | `modalOptions?` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | A ShowModalOptions instance | ##### Returns `ViewBase` #### Call Signature ```ts showModal(moduleName: string, modalOptions?: ShowModalOptions): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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` *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | `ViewBase` | to unload. | #### 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/ViewHelper.md' --- Defined in: [ui/core/view/view-helper/index.d.ts:3](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L3) ## Constructors ### Constructor ```ts new ViewHelper(): ViewHelper; ``` #### Returns `ViewHelper` ## Methods ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/view-helper/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L33) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/view-helper/index.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L21) 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` *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/view-helper/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L11) 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; ``` *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/view-helper/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-helper/index.d.ts#L31) 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` --- --- url: 'https://docs.nativescript.org/api/classes/VirtualArray.md' description: Advanced array like class that helps loading items on demand. --- Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) Advanced array like class that helps loading items on demand. ## Extends * [`Observable`](Observable.md) ## Type Parameters | Type Parameter | | ------ | | `T` | ## Constructors ### Constructor ```ts new VirtualArray(length?: number): VirtualArray; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `length?` | `number` | #### Returns `VirtualArray`<`T`> #### Overrides [`Observable`](Observable.md).[`constructor`](Observable.md#constructor) ## Properties ### changeEvent ```ts static changeEvent: string; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) String value used when hooking to change event. *** ### itemsLoadingEvent ```ts static itemsLoadingEvent: string; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) String value used when hooking to itemsLoading event. *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) Gets or sets length for the virtual array. ##### Returns `number` #### Set Signature ```ts set length(value: number): void; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | ##### Returns `void` *** ### loadSize #### Get Signature ```ts get loadSize(): number; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) ##### Returns `number` #### Set Signature ```ts set loadSize(value: number): void; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-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.1.0-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.1.0-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.1.0-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.1.0-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(index: number): T; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index` | `number` | #### Returns `T` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### load() ```ts load(index: number, items: T[]): void; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) Loads items from an array starting at index. #### Parameters | Parameter | Type | | ------ | ------ | | `index` | `number` | | `items` | `T`\[] | #### Returns `void` *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-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: "itemsLoading", callback: (args: ItemsLoading) => void, thisArg?: any): void; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) Raised when still not loaded items are requested. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"itemsLoading"` | | `callback` | (`args`: [`ItemsLoading`](../interfaces/ItemsLoading.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from ```ts Observable.on ``` #### Call Signature ```ts on( event: "change", callback: (args: ChangedData) => void, thisArg?: any): void; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) Raised when a change occurs. ##### 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.1.0-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.1.0-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.1.0-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(index: number, value: T): void; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index` | `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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/WebView.md' description: Represents a standard WebView widget. --- Defined in: [ui/web-view/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L24) Represents a standard WebView widget. ## Ns View ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new WebView(): WebView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `WebView` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](View.md).[`_nativeWindow`](View.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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/web-view/index.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L42) Gets the native [android widget](http://developer.android.com/reference/android/webkit/WebView.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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### canGoBack ```ts canGoBack: boolean; ``` Defined in: [ui/web-view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L59) Gets a value indicating whether the WebView can navigate back. *** ### canGoForward ```ts canGoForward: boolean; ``` Defined in: [ui/web-view/index.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L64) Gets a value indicating whether the WebView can navigate forward. *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### disableZoom ```ts disableZoom: boolean; ``` Defined in: [ui/web-view/index.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L71) Disable scrolling in the WebView #### Ns Property *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveColumnGap`](View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxHeight`](View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMaxWidth`](View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveRowGap`](View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/web-view/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L47) Gets the native [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview/) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosAllowInlineMediaPlayback ```ts iosAllowInlineMediaPlayback: boolean; ``` Defined in: [ui/web-view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L79) Enables inline media playback on iOS. By default, webview forces iPhone into fullscreen media playback. #### Ns Property *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxHeight`](View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](View.md).[`maxWidth`](View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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; ``` Defined in: [ui/web-view/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L54) Gets or sets the url, local file path or HTML string. #### Ns Property *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`View`](View.md).[`closedModallyEvent`](View.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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) *** ### loadFinishedEvent ```ts static loadFinishedEvent: string; ``` Defined in: [ui/web-view/index.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L37) String value used when hooking to loadFinished event. #### Ns Event loadFinished *** ### loadStartedEvent ```ts static loadStartedEvent: string; ``` Defined in: [ui/web-view/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L30) String value used when hooking to loadStarted event. #### Ns Event loadStarted *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`View`](View.md).[`_getRootModalHost`](View.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`View`](View.md).[`getNativeWindow`](View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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) *** ### goBack() ```ts goBack(): any; ``` Defined in: [ui/web-view/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L89) Navigates back. #### Returns `any` *** ### goForward() ```ts goForward(): any; ``` Defined in: [ui/web-view/index.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L94) Navigates forward. #### Returns `any` *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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/web-view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L111) 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: "loadFinished", callback: (args: LoadEventData) => void, thisArg?: any): void; ``` Defined in: [ui/web-view/index.d.ts:116](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L116) Raised when a loadFinished event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loadFinished"` | | `callback` | (`args`: [`LoadEventData`](../interfaces/LoadEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loadStarted", callback: (args: LoadEventData) => void, thisArg?: any): void; ``` Defined in: [ui/web-view/index.d.ts:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L121) Raised when a loadStarted event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loadStarted"` | | `callback` | (`args`: [`LoadEventData`](../interfaces/LoadEventData.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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### reload() ```ts reload(): any; ``` Defined in: [ui/web-view/index.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L99) Reloads the current url. #### 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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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) *** ### stopLoading() ```ts stopLoading(): void; ``` Defined in: [ui/web-view/index.d.ts:84](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L84) Stops loading the current content (if any). #### Returns `void` *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/WindowBase.md' description: >- Cross-platform base for any window surface. Carries identity, role, state, lifecycle events and the native accessors. Surfaces that host a NativeScript view ... --- Defined in: [native-window/index.d.ts:35](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L35) Cross-platform base for any window surface. Carries identity, role, state, lifecycle events and the native accessors. Surfaces that host a NativeScript view tree are [NativeWindow](NativeWindow.md) instances. ## Extends * [`Observable`](Observable.md) ## Extended by * [`NativeWindow`](NativeWindow.md) ## Constructors ### Constructor ```ts new WindowBase(): WindowBase; ``` #### Returns `WindowBase` #### Inherited from [`Observable`](Observable.md).[`constructor`](Observable.md#constructor) ## Properties ### android? ```ts readonly optional android?: { activity: AppCompatActivity; }; ``` Defined in: [native-window/index.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L71) The Android surface backing this window, or `undefined` when not running on Android or when the activity is already gone. #### activity ```ts readonly activity: AppCompatActivity; ``` *** ### id ```ts readonly id: string; ``` Defined in: [native-window/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L41) Stable identifier of this window, unique for the lifetime of the JS context. Survives a detach/re-attach, so it can be used to correlate a window across an iOS scene reconnect or an Android activity recreation. *** ### ios? ```ts readonly optional ios?: { scene?: UIWindowScene; uiWindow: UIWindow; }; ``` Defined in: [native-window/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L65) The iOS surface backing this window, or `undefined` when not running on iOS. `scene` is absent for apps still on the pre-scene (window-only) lifecycle. #### scene? ```ts readonly optional scene?: UIWindowScene; ``` #### uiWindow ```ts readonly uiWindow: UIWindow; ``` *** ### isPrimary ```ts readonly isPrimary: boolean; ``` Defined in: [native-window/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L59) Whether this is the application's primary window. At most one window is primary at a time. When the primary window closes another attached window is promoted and `primaryWindowChanged` is raised on the Application. *** ### role ```ts readonly role: WindowRole; ``` Defined in: [native-window/index.d.ts:46](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L46) The purpose this window surface serves. *** ### state ```ts readonly state: WindowState; ``` Defined in: [native-window/index.d.ts:51](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L51) Where this window currently sits in its lifecycle. *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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) *** ### close() ```ts abstract close(): void; ``` Defined in: [native-window/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L79) Closes this window. Ends the window session: the native surface is dismissed, `close` is raised and the window is dropped from the Application registry. #### Returns `void` *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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() #### Call Signature ```ts off( event: "activate", callback?: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L218) Removes the listener(s) for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `event` | `"activate"` | - | | `callback?` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.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` ##### Overrides [`Observable`](Observable.md).[`off`](Observable.md#off) #### Call Signature ```ts off( event: "deactivate", callback?: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:219](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L219) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"deactivate"` | | `callback?` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "background", callback?: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:220](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L220) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"background"` | | `callback?` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "foreground", callback?: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:221](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L221) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"foreground"` | | `callback?` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "attached", callback?: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L222) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"attached"` | | `callback?` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "detached", callback?: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:223](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L223) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"detached"` | | `callback?` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "close", callback?: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:224](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L224) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"close"` | | `callback?` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "displayed", callback?: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L225) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback?` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "orientationChanged", callback?: (data: WindowOrientationChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:226](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L226) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback?` | (`data`: [`WindowOrientationChangedEventData`](../interfaces/WindowOrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "systemAppearanceChanged", callback?: (data: WindowSystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:227](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L227) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback?` | (`data`: [`WindowSystemAppearanceChangedEventData`](../interfaces/WindowSystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "layoutDirectionChanged", callback?: (data: WindowLayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:228](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L228) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback?` | (`data`: [`WindowLayoutDirectionChangedEventData`](../interfaces/WindowLayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityCreated", callback?: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L229) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityCreated"` | | `callback?` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityDestroyed", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:230](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L230) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityDestroyed"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityStarted", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:231](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L231) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStarted"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityPaused", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L232) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityPaused"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityResumed", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:233](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L233) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResumed"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityStopped", callback?: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:234](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L234) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStopped"` | | `callback?` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "saveActivityState", callback?: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:235](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L235) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"saveActivityState"` | | `callback?` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityResult", callback?: (args: AndroidActivityResultEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L236) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResult"` | | `callback?` | (`args`: [`AndroidActivityResultEventData`](../interfaces/AndroidActivityResultEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityBackPressed", callback?: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:237](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L237) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityBackPressed"` | | `callback?` | (`args`: [`AndroidActivityBackPressedEventData`](../interfaces/AndroidActivityBackPressedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityNewIntent", callback?: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:238](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L238) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityNewIntent"` | | `callback?` | (`args`: [`AndroidActivityNewIntentEventData`](../interfaces/AndroidActivityNewIntentEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "activityRequestPermissions", callback?: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L239) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityRequestPermissions"` | | `callback?` | (`args`: [`AndroidActivityRequestPermissionsEventData`](../interfaces/AndroidActivityRequestPermissionsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "sceneWillConnect", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:240](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L240) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillConnect"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "sceneDidActivate", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:241](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L241) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidActivate"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "sceneWillResignActive", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:242](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L242) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillResignActive"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "sceneWillEnterForeground", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L243) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillEnterForeground"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "sceneDidEnterBackground", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:244](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L244) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidEnterBackground"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "sceneDidDisconnect", callback?: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:245](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L245) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidDisconnect"` | | `callback?` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "sceneOpenURLContexts", callback?: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L246) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback?` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "sceneContinueUserActivity", callback?: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:247](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L247) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback?` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( event: "scenePerformActionForShortcutItem", callback?: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:248](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L248) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback?` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` #### Call Signature ```ts off( eventName: string, callback?: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:254](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L254) Removes a listener for the specified event name. Omitting the callback removes every listener registered for that event on this window. ##### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.off ``` *** ### on() #### Call Signature ```ts on( event: "activate", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:84](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L84) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activate"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`Observable`](Observable.md).[`on`](Observable.md#on) #### Call Signature ```ts on( event: "deactivate", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L89) Raised when the window loses focus. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"deactivate"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "background", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L94) Raised when the window enters the background. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"background"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "foreground", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L99) Raised when the window enters the foreground. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"foreground"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "attached", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:105](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L105) Raised when a native surface is bound to the window - both on the first connect and on every re-attach after a `detached`. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"attached"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "detached", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L115) Raised when the native surface goes away while the window session stays alive (iOS scene disconnect, Android activity recreation). The window stays registered on the Application and keeps its listeners, so the same instance is handed back when a surface re-attaches and handlers registered before the detach keep working afterwards. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"detached"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "close", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L125) Raised when the window session ends for good. Fires exactly once per window. Listeners stay registered for the whole teardown, so a handler added at any earlier point still observes it; immediately after it is dispatched the framework drops every listener on the instance, so nothing registered on a window outlives the window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"close"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "displayed", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:130](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L130) Raised after the window content has been displayed for the first time. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "orientationChanged", callback: (data: WindowOrientationChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:135](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L135) Raised when the orientation of this window changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`data`: [`WindowOrientationChangedEventData`](../interfaces/WindowOrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "systemAppearanceChanged", callback: (data: WindowSystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:140](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L140) Raised when the system appearance of this window changes between light and dark. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`data`: [`WindowSystemAppearanceChangedEventData`](../interfaces/WindowSystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "layoutDirectionChanged", callback: (data: WindowLayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L145) Raised when the layout direction of this window changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`data`: [`WindowLayoutDirectionChangedEventData`](../interfaces/WindowLayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityCreated", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:147](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L147) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityCreated"` | | `callback` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityDestroyed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L148) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityDestroyed"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityStarted", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L149) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStarted"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityPaused", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:150](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L150) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityPaused"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityResumed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:151](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L151) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResumed"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityStopped", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L152) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStopped"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "saveActivityState", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:153](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L153) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"saveActivityState"` | | `callback` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityResult", callback: (args: AndroidActivityResultEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L154) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResult"` | | `callback` | (`args`: [`AndroidActivityResultEventData`](../interfaces/AndroidActivityResultEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityBackPressed", callback: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L155) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityBackPressed"` | | `callback` | (`args`: [`AndroidActivityBackPressedEventData`](../interfaces/AndroidActivityBackPressedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityNewIntent", callback: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:156](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L156) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityNewIntent"` | | `callback` | (`args`: [`AndroidActivityNewIntentEventData`](../interfaces/AndroidActivityNewIntentEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "activityRequestPermissions", callback: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:157](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L157) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityRequestPermissions"` | | `callback` | (`args`: [`AndroidActivityRequestPermissionsEventData`](../interfaces/AndroidActivityRequestPermissionsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "sceneWillConnect", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:158](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L158) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillConnect"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "sceneDidActivate", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L159) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidActivate"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "sceneWillResignActive", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:160](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L160) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillResignActive"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "sceneWillEnterForeground", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:161](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L161) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillEnterForeground"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "sceneDidEnterBackground", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L162) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidEnterBackground"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "sceneDidDisconnect", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:163](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L163) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidDisconnect"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L164) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:165](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L165) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L166) Raised when the window becomes the active/focused window. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( eventName: string, callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:178](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L178) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.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 Observable.on ``` *** ### once() #### Call Signature ```ts once( event: "activate", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L180) Adds a listener for the specified event name, which, once fired, will remove itself. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `event` | `"activate"` | - | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.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).[`once`](Observable.md#once) #### Call Signature ```ts once( event: "deactivate", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:181](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L181) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"deactivate"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "background", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:182](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L182) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"background"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "foreground", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L183) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"foreground"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "attached", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:184](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L184) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"attached"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "detached", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:185](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L185) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"detached"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "close", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:186](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L186) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"close"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "displayed", callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L187) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "orientationChanged", callback: (data: WindowOrientationChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:188](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L188) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`data`: [`WindowOrientationChangedEventData`](../interfaces/WindowOrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "systemAppearanceChanged", callback: (data: WindowSystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:189](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L189) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`data`: [`WindowSystemAppearanceChangedEventData`](../interfaces/WindowSystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "layoutDirectionChanged", callback: (data: WindowLayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L190) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`data`: [`WindowLayoutDirectionChangedEventData`](../interfaces/WindowLayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityCreated", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:191](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L191) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityCreated"` | | `callback` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityDestroyed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:192](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L192) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityDestroyed"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityStarted", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:193](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L193) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStarted"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityPaused", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L194) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityPaused"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityResumed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:195](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L195) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResumed"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityStopped", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:196](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L196) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStopped"` | | `callback` | (`args`: [`AndroidActivityEventData`](../interfaces/AndroidActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "saveActivityState", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L197) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"saveActivityState"` | | `callback` | (`args`: [`AndroidActivityBundleEventData`](../interfaces/AndroidActivityBundleEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityResult", callback: (args: AndroidActivityResultEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:198](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L198) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResult"` | | `callback` | (`args`: [`AndroidActivityResultEventData`](../interfaces/AndroidActivityResultEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityBackPressed", callback: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:199](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L199) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityBackPressed"` | | `callback` | (`args`: [`AndroidActivityBackPressedEventData`](../interfaces/AndroidActivityBackPressedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityNewIntent", callback: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:200](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L200) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityNewIntent"` | | `callback` | (`args`: [`AndroidActivityNewIntentEventData`](../interfaces/AndroidActivityNewIntentEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "activityRequestPermissions", callback: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L201) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityRequestPermissions"` | | `callback` | (`args`: [`AndroidActivityRequestPermissionsEventData`](../interfaces/AndroidActivityRequestPermissionsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "sceneWillConnect", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:202](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L202) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillConnect"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "sceneDidActivate", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:203](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L203) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidActivate"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "sceneWillResignActive", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L204) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillResignActive"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "sceneWillEnterForeground", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:205](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L205) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneWillEnterForeground"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "sceneDidEnterBackground", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:206](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L206) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidEnterBackground"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "sceneDidDisconnect", callback: (args: SceneEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:207](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L207) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneDidDisconnect"` | | `callback` | (`args`: [`SceneEventData`](../interfaces/SceneEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "sceneOpenURLContexts", callback: (args: SceneOpenURLContextsEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L208) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneOpenURLContexts"` | | `callback` | (`args`: [`SceneOpenURLContextsEventData`](../interfaces/SceneOpenURLContextsEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "sceneContinueUserActivity", callback: (args: SceneContinueUserActivityEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:209](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L209) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"sceneContinueUserActivity"` | | `callback` | (`args`: [`SceneContinueUserActivityEventData`](../interfaces/SceneContinueUserActivityEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( event: "scenePerformActionForShortcutItem", callback: (args: ScenePerformActionForShortcutItemEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:210](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L210) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"scenePerformActionForShortcutItem"` | | `callback` | (`args`: [`ScenePerformActionForShortcutItemEventData`](../interfaces/ScenePerformActionForShortcutItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.once ``` #### Call Signature ```ts once( eventName: string, callback: (data: WindowBaseEventData) => void, thisArg?: any): void; ``` Defined in: [native-window/index.d.ts:216](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L216) Adds a listener for the specified event name that is removed as soon as it is raised once. ##### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`WindowBaseEventData`](../interfaces/WindowBaseEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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/WrapLayout.md' description: >- WrapLayout position children in rows or columns depending on orientation property until space is filled and then wraps them on new row or column. --- Defined in: [ui/layouts/wrap-layout/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/wrap-layout/index.d.ts#L12) WrapLayout position children in rows or columns depending on orientation property until space is filled and then wraps them on new row or column. ## Ns View WrapLayout ## Extends * [`LayoutBase`](LayoutBase.md) ## Constructors ### Constructor ```ts new WrapLayout(): WrapLayout; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `WrapLayout` #### Inherited from [`LayoutBase`](LayoutBase.md).[`constructor`](LayoutBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_nativeWindow`](LayoutBase.md#nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) 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:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) 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:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) 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:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) 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:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) 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:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) 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:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) 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:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) 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:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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.1.0-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:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) 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:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) 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:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) 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.1.0-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:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) 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:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) 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:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) 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:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) 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:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) 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:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) 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:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) 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:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) 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:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) 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:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) 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:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) 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:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) 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:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) 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:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) 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:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) 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:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) 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:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) 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:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) 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:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) 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.1.0-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.1.0-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.1.0-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:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) 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.1.0-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.1.0-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.1.0-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:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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.1.0-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:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveColumnGap`](LayoutBase.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxHeight`](LayoutBase.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMaxWidth`](LayoutBase.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveRowGap`](LayoutBase.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) 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.1.0-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.1.0-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.1.0-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:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) 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.1.0-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:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) 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.1.0-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:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) 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:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) 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:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) 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:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) 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:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) 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:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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:1187](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1187) 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:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) 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.1.0-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:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) 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:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) 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.1.0-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:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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) *** ### itemHeight ```ts itemHeight: LengthType; ``` Defined in: [ui/layouts/wrap-layout/index.d.ts:35](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/wrap-layout/index.d.ts#L35) Gets or sets the height used to measure and layout each child. Default value is Number.NaN which does not restrict children. #### Ns Property *** ### itemWidth ```ts itemWidth: LengthType; ``` Defined in: [ui/layouts/wrap-layout/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/wrap-layout/index.d.ts#L27) Gets or sets the width used to measure and layout each child. Default value is Number.NaN which does not restrict children. #### Ns Property *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) 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:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) 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:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) 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:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) 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:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxHeight`](LayoutBase.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`maxWidth`](LayoutBase.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) 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:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) 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:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) 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.1.0-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:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) 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.1.0-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) *** ### orientation ```ts orientation: OrientationType; ``` Defined in: [ui/layouts/wrap-layout/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/wrap-layout/index.d.ts#L19) Gets or sets the flow direction. Default value is horizontal. If orientation is horizontal items are arranged in rows, else items are arranged in columns. #### Ns Property *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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.1.0-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.1.0-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:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) 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:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) 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:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) 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.1.0-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.1.0-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:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) 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:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) 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.1.0-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.1.0-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:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### 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.1.0-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:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### 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.1.0-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:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) 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:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) 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:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) 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.1.0-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:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) 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:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) 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:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) 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:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) 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:89](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L89) 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:103](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L103) 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:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L96) 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.1.0-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:110](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L110) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### closedModallyEvent ```ts static closedModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L82) String value used when hooking to closedModally event. Fired on the modal view once its native dismissal has fully completed (after the close callback and UI teardown). #### Ns Event closedModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`closedModallyEvent`](LayoutBase.md#closedmodallyevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-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:60](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L60) 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.1.0-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.1.0-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:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L66) 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:73](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L73) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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.1.0-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.1.0-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:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### 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.1.0-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:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](ViewBase.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalHost`](LayoutBase.md#getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) 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:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **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:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### 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:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) 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:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) 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.1.0-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:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) 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:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) 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:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) 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.1.0-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.1.0-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.1.0-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:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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.1.0-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.1.0-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.1.0-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.1.0-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:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) 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.1.0-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.1.0-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:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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.1.0-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:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### 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:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) 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:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) 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:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) 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:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) 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:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](NativeWindow.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getNativeWindow`](LayoutBase.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) 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.1.0-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.1.0-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:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) 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.1.0-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.1.0-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.1.0-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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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.1.0-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:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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.1.0-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.1.0-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:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) 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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) 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:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) 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:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) 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:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) 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:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) 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:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) 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:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) 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:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) 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.1.0-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:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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.1.0-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:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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.1.0-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.1.0-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.1.0-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:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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.1.0-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:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) 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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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.1.0-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:807](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L807) #### 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:795](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L795) 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:785](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L785) 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.1.0-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.1.0-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.1.0-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.1.0-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:805](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L805) 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/WrappedValue.md' description: >- 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 wrapp... --- Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) 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. ## Constructors ### Constructor ```ts new WrappedValue(wrapped: any): WrappedValue; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Creates an instance of WrappedValue object. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `wrapped` | `any` | the real value which should be wrapped. | #### Returns `WrappedValue` ## Properties ### wrapped ```ts wrapped: any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Property which holds the real value. ## Methods ### unwrap() ```ts static unwrap(value: any): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Gets the real value of previously wrappedValue. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | Value that should be unwraped. If there is no wrappedValue property of the value object then value will be returned. | #### Returns `any` *** ### wrap() ```ts static wrap(value: any): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Returns an instance of WrappedValue. The actual instance is get from a WrappedValues pool. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | Value that should be wrapped. | #### Returns `any` --- --- url: 'https://docs.nativescript.org/api/classes/XmlParser.md' description: >- A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14 --- Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/xml/index.ts) A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14 ## Constructors ### Constructor ```ts new XmlParser( onEvent: (event: ParserEvent) => void, onError?: (error: Error, position: Position) => void, processNamespaces?: boolean): XmlParser; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/xml/index.ts) Creates a new instance of the XmlParser class. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `onEvent` | (`event`: [`ParserEvent`](ParserEvent.md)) => `void` | The callback to execute when a parser event occurs. The 'event' parameter contains information about the event. | | `onError?` | (`error`: `Error`, `position`: `Position`) => `void` | The callback to execute when a parser error occurs. The 'error' parameter contains the error. | | `processNamespaces?` | `boolean` | Specifies whether namespaces should be processed. | #### Returns `XmlParser` ## Accessors ### angularSyntax #### Get Signature ```ts get angularSyntax(): boolean; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/xml/index.ts) ##### Returns `boolean` #### Set Signature ```ts set angularSyntax(value: boolean): void; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/xml/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | ##### Returns `void` ## Methods ### parse() ```ts parse(xmlString: string): void; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/xml/index.ts) Parses the supplied xml string. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `xmlString` | `string` | The string containing the xml to parse. | #### Returns `void` --- --- url: >- https://docs.nativescript.org/api/interfaces/AccessibilityDecrementEventData.md description: Base event data. --- Defined in: [ui/slider/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L96) Base event data. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Slider; ``` Defined in: [ui/slider/index.d.ts:97](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L97) The Observable instance that has raised the event. #### Overrides [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### value? ```ts optional value?: number; ``` Defined in: [ui/slider/index.d.ts:98](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L98) --- --- url: >- https://docs.nativescript.org/api/interfaces/AccessibilityIncrementEventData.md description: Base event data. --- Defined in: [ui/slider/index.d.ts:91](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L91) Base event data. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Slider; ``` Defined in: [ui/slider/index.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L92) The Observable instance that has raised the event. #### Overrides [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### value? ```ts optional value?: number; ``` Defined in: [ui/slider/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/slider/index.d.ts#L93) --- --- url: 'https://docs.nativescript.org/api/interfaces/ActionOptions.md' description: Provides options for the dialog. --- Defined in: [ui/dialogs/index.d.ts:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L155) Provides options for the dialog. ## Extends * [`CancelableOptions`](CancelableOptions.md) ## Properties ### actions? ```ts optional actions?: string[]; ``` Defined in: [ui/dialogs/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L174) Gets or sets the list of available actions. *** ### cancelable? ```ts optional cancelable?: boolean; ``` Defined in: [ui/dialogs/index.d.ts:144](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L144) \[Android only] Gets or sets if the dialog can be canceled by taping outside of the dialog. #### Inherited from [`CancelableOptions`](CancelableOptions.md).[`cancelable`](CancelableOptions.md#cancelable) *** ### cancelButtonText? ```ts optional cancelButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L169) Gets or sets the Cancel button text. *** ### destructiveActionsIndexes? ```ts optional destructiveActionsIndexes?: number[]; ``` Defined in: [ui/dialogs/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L179) \[iOS only] Gets or sets the indexes of destructive actions. *** ### message? ```ts optional message?: string; ``` Defined in: [ui/dialogs/index.d.ts:164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L164) Gets or sets the dialog message. *** ### theme? ```ts optional theme?: number; ``` Defined in: [ui/dialogs/index.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L149) \[Android only] Sets the theme of the Dialog. Usable themes can be found: https://developer.android.com/reference/android/R.style #### Inherited from [`CancelableOptions`](CancelableOptions.md).[`theme`](CancelableOptions.md#theme) *** ### title? ```ts optional title?: string; ``` Defined in: [ui/dialogs/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L159) Gets or sets the dialog title. --- --- url: 'https://docs.nativescript.org/api/interfaces/AddArrayFromBuilder.md' description: Defines an interface for adding arrays declared in xml. --- Defined in: [ui/core/view/index.d.ts:1240](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1240) Defines an interface for adding arrays declared in xml. ## Methods ### \_addArrayFromBuilder() ```ts _addArrayFromBuilder(name: string, value: any[]): void; ``` Defined in: [ui/core/view/index.d.ts:1246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1246) A function that is called when an array declaration is found in xml. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the array. | | `value` | `any`\[] | The actual value of the array. | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/interfaces/AddChildFromBuilder.md' description: Defines an interface for adding a child element declared in xml. --- Defined in: [ui/core/view/index.d.ts:1252](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1252) Defines an interface for adding a child element declared in xml. ## Methods ### \_addChildFromBuilder() ```ts _addChildFromBuilder(name: string, value: any): void; ``` Defined in: [ui/core/view/index.d.ts:1259](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1259) 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` --- --- url: 'https://docs.nativescript.org/api/interfaces/AlertOptions.md' description: Provides options for the alert. --- Defined in: [ui/dialogs/index.d.ts:200](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L200) Provides options for the alert. ## Extends * [`DialogOptions`](DialogOptions.md) ## Extended by * [`ConfirmOptions`](ConfirmOptions.md) ## Properties ### cancelable? ```ts optional cancelable?: boolean; ``` Defined in: [ui/dialogs/index.d.ts:144](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L144) \[Android only] Gets or sets if the dialog can be canceled by taping outside of the dialog. #### Inherited from [`DialogOptions`](DialogOptions.md).[`cancelable`](DialogOptions.md#cancelable) *** ### message? ```ts optional message?: string; ``` Defined in: [ui/dialogs/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L194) Gets or sets the dialog message. #### Inherited from [`DialogOptions`](DialogOptions.md).[`message`](DialogOptions.md#message) *** ### okButtonText? ```ts optional okButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L204) Gets or sets the OK button text. *** ### theme? ```ts optional theme?: number; ``` Defined in: [ui/dialogs/index.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L149) \[Android only] Sets the theme of the Dialog. Usable themes can be found: https://developer.android.com/reference/android/R.style #### Inherited from [`DialogOptions`](DialogOptions.md).[`theme`](DialogOptions.md#theme) *** ### title? ```ts optional title?: string; ``` Defined in: [ui/dialogs/index.d.ts:189](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L189) Gets or sets the dialog title. #### Inherited from [`DialogOptions`](DialogOptions.md).[`title`](DialogOptions.md#title) --- --- url: >- https://docs.nativescript.org/api/interfaces/AndroidActivityBackPressedEventData.md description: Data for the Android activity back pressed event. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Data for the Android activity back pressed event. ## Extends * [`AndroidActivityEventData`](AndroidActivityEventData.md) ## Properties ### activity ```ts activity: AppCompatActivity; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The activity. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`activity`](AndroidActivityEventData.md#activity) *** ### cancel ```ts cancel: boolean; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) In the event handler, set this value to true if you want to cancel the back navigation and do something else instead. *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`eventName`](AndroidActivityEventData.md#eventname) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`object`](AndroidActivityEventData.md#object) *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the activity belongs to, when one is registered for it. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`window`](AndroidActivityEventData.md#window) --- --- url: 'https://docs.nativescript.org/api/interfaces/AndroidActivityBundleEventData.md' description: Data for the Android activity events with bundle. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Data for the Android activity events with bundle. ## Extends * [`AndroidActivityEventData`](AndroidActivityEventData.md) ## Properties ### activity ```ts activity: AppCompatActivity; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The activity. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`activity`](AndroidActivityEventData.md#activity) *** ### bundle ```ts bundle: Bundle; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The bundle. *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`eventName`](AndroidActivityEventData.md#eventname) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`object`](AndroidActivityEventData.md#object) *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the activity belongs to, when one is registered for it. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`window`](AndroidActivityEventData.md#window) --- --- url: 'https://docs.nativescript.org/api/interfaces/AndroidActivityCallbacks.md' --- Defined in: [ui/frame/index.d.ts:507](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L507) ## Methods ### getRootView() ```ts getRootView(): View; ``` Defined in: [ui/frame/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L508) #### Returns [`View`](../classes/View.md) *** ### onActivityResult() ```ts onActivityResult( activity: any, requestCode: number, resultCode: number, data: any, superFunc: Function): any; ``` Defined in: [ui/frame/index.d.ts:519](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L519) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `requestCode` | `number` | | `resultCode` | `number` | | `data` | `any` | | `superFunc` | `Function` | #### Returns `any` *** ### onBackPressed() ```ts onBackPressed(activity: any, superFunc: Function): void; ``` Defined in: [ui/frame/index.d.ts:517](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L517) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `superFunc` | `Function` | #### Returns `void` *** ### onCreate() ```ts onCreate( activity: any, savedInstanceState: any, intent: any, superFunc: Function): void; ``` Defined in: [ui/frame/index.d.ts:511](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L511) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `savedInstanceState` | `any` | | `intent` | `any` | | `superFunc` | `Function` | #### Returns `void` *** ### onDestroy() ```ts onDestroy(activity: any, superFunc: Function): void; ``` Defined in: [ui/frame/index.d.ts:516](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L516) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `superFunc` | `Function` | #### Returns `void` *** ### onNewIntent() ```ts onNewIntent( activity: any, intent: any, superSetIntentFunc: Function, superFunc: Function): void; ``` Defined in: [ui/frame/index.d.ts:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L520) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `intent` | `any` | | `superSetIntentFunc` | `Function` | | `superFunc` | `Function` | #### Returns `void` *** ### onPostResume() ```ts onPostResume(activity: any, superFunc: Function): void; ``` Defined in: [ui/frame/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L515) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `superFunc` | `Function` | #### Returns `void` *** ### onRequestPermissionsResult() ```ts onRequestPermissionsResult( activity: any, requestCode: number, permissions: string[], grantResults: number[], superFunc: Function): void; ``` Defined in: [ui/frame/index.d.ts:518](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L518) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `requestCode` | `number` | | `permissions` | `string`\[] | | `grantResults` | `number`\[] | | `superFunc` | `Function` | #### Returns `void` *** ### onSaveInstanceState() ```ts onSaveInstanceState( activity: any, outState: any, superFunc: Function): void; ``` Defined in: [ui/frame/index.d.ts:512](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L512) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `outState` | `any` | | `superFunc` | `Function` | #### Returns `void` *** ### onStart() ```ts onStart(activity: any, superFunc: Function): void; ``` Defined in: [ui/frame/index.d.ts:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L513) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `superFunc` | `Function` | #### Returns `void` *** ### onStop() ```ts onStop(activity: any, superFunc: Function): void; ``` Defined in: [ui/frame/index.d.ts:514](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L514) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `superFunc` | `Function` | #### Returns `void` *** ### resetActivityContent() ```ts resetActivityContent(activity: any, view?: View): void; ``` Defined in: [ui/frame/index.d.ts:509](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L509) #### Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | | `view?` | [`View`](../classes/View.md) | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/interfaces/AndroidActivityEventData.md' description: Data for the Android activity events. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Data for the Android activity events. ## Extended by * [`AndroidActivityBundleEventData`](AndroidActivityBundleEventData.md) * [`AndroidActivityRequestPermissionsEventData`](AndroidActivityRequestPermissionsEventData.md) * [`AndroidActivityResultEventData`](AndroidActivityResultEventData.md) * [`AndroidActivityNewIntentEventData`](AndroidActivityNewIntentEventData.md) * [`AndroidActivityBackPressedEventData`](AndroidActivityBackPressedEventData.md) ## Properties ### activity ```ts activity: AppCompatActivity; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The activity. *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the activity belongs to, when one is registered for it. --- --- url: >- https://docs.nativescript.org/api/interfaces/AndroidActivityNewIntentEventData.md description: Data for the Android activity newIntent event. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Data for the Android activity newIntent event. ## Extends * [`AndroidActivityEventData`](AndroidActivityEventData.md) ## Properties ### activity ```ts activity: AppCompatActivity; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The activity. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`activity`](AndroidActivityEventData.md#activity) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`eventName`](AndroidActivityEventData.md#eventname) *** ### intent ```ts intent: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The intent. *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`object`](AndroidActivityEventData.md#object) *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the activity belongs to, when one is registered for it. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`window`](AndroidActivityEventData.md#window) --- --- url: >- https://docs.nativescript.org/api/interfaces/AndroidActivityRequestPermissionsEventData.md description: Data for the Android activity onRequestPermissions callback --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Data for the Android activity onRequestPermissions callback ## Extends * [`AndroidActivityEventData`](AndroidActivityEventData.md) ## Properties ### activity ```ts activity: AppCompatActivity; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The activity. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`activity`](AndroidActivityEventData.md#activity) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`eventName`](AndroidActivityEventData.md#eventname) *** ### grantResults ```ts grantResults: number[]; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The Granted. *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`object`](AndroidActivityEventData.md#object) *** ### permissions ```ts permissions: string[]; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The Permissions. *** ### requestCode ```ts requestCode: number; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The request code. *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the activity belongs to, when one is registered for it. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`window`](AndroidActivityEventData.md#window) --- --- url: 'https://docs.nativescript.org/api/interfaces/AndroidActivityResultEventData.md' description: Data for the Android activity result event. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Data for the Android activity result event. ## Extends * [`AndroidActivityEventData`](AndroidActivityEventData.md) ## Properties ### activity ```ts activity: AppCompatActivity; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The activity. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`activity`](AndroidActivityEventData.md#activity) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`eventName`](AndroidActivityEventData.md#eventname) *** ### intent ```ts intent: Intent; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The intent. *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`object`](AndroidActivityEventData.md#object) *** ### requestCode ```ts requestCode: number; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The request code. *** ### resultCode ```ts resultCode: number; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The result code. *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the activity belongs to, when one is registered for it. #### Inherited from [`AndroidActivityEventData`](AndroidActivityEventData.md).[`window`](AndroidActivityEventData.md#window) --- --- url: 'https://docs.nativescript.org/api/interfaces/AndroidOverflowInsetData.md' description: Defines the data for the androidOverflowInset event. --- Defined in: [ui/core/view/view-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-interfaces.ts) Defines the data for the androidOverflowInset event. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### inset? ```ts optional inset?: Inset; ``` Defined in: [ui/core/view/view-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-interfaces.ts) The inset values passed to the view to consume or update. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/AnimationDefinition.md' --- Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ## Extended by * [`AnimationDefinitionInternal`](AnimationDefinitionInternal.md) ## Properties ### backgroundColor? ```ts optional backgroundColor?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### curve? ```ts optional curve?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### delay? ```ts optional delay?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### duration? ```ts optional duration?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### height? ```ts optional height?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### iterations? ```ts optional iterations?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### opacity? ```ts optional opacity?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### rotate? ```ts optional rotate?: | number | Point3D | { x: number; y: number; z: number; }; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### scale? ```ts optional scale?: | Pair | { x: number; y: number; }; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### target? ```ts optional target?: View; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### translate? ```ts optional translate?: | Pair | { x: number; y: number; }; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### width? ```ts optional width?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/AnimationDefinitionInternal.md' --- Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ## Extends * [`AnimationDefinition`](AnimationDefinition.md) ## Properties ### backgroundColor? ```ts optional backgroundColor?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`backgroundColor`](AnimationDefinition.md#backgroundcolor) *** ### curve? ```ts optional curve?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`curve`](AnimationDefinition.md#curve) *** ### delay? ```ts optional delay?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`delay`](AnimationDefinition.md#delay) *** ### duration? ```ts optional duration?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`duration`](AnimationDefinition.md#duration) *** ### height? ```ts optional height?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`height`](AnimationDefinition.md#height) *** ### iterations? ```ts optional iterations?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`iterations`](AnimationDefinition.md#iterations) *** ### opacity? ```ts optional opacity?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`opacity`](AnimationDefinition.md#opacity) *** ### rotate? ```ts optional rotate?: | number | Point3D | { x: number; y: number; z: number; }; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`rotate`](AnimationDefinition.md#rotate) *** ### scale? ```ts optional scale?: | Pair | { x: number; y: number; }; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`scale`](AnimationDefinition.md#scale) *** ### target? ```ts optional target?: View; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`target`](AnimationDefinition.md#target) *** ### translate? ```ts optional translate?: | Pair | { x: number; y: number; }; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`translate`](AnimationDefinition.md#translate) *** ### valueSource? ```ts optional valueSource?: "animation" | "keyframe"; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### width? ```ts optional width?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`AnimationDefinition`](AnimationDefinition.md).[`width`](AnimationDefinition.md#width) --- --- url: 'https://docs.nativescript.org/api/interfaces/ApplicationEventData.md' description: Event data containing information for the application events. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information for the application events. ## Extended by * [`OrientationChangedEventData`](OrientationChangedEventData.md) * [`SystemAppearanceChangedEventData`](SystemAppearanceChangedEventData.md) * [`LayoutDirectionChangedEventData`](LayoutDirectionChangedEventData.md) * [`FontScaleChangedEventData`](FontScaleChangedEventData.md) * [`UnhandledErrorEventData`](UnhandledErrorEventData.md) * [`DiscardedErrorEventData`](DiscardedErrorEventData.md) * [`CssChangedEventData`](CssChangedEventData.md) * [`InitRootViewEventData`](InitRootViewEventData.md) * [`LoadAppCSSEventData`](LoadAppCSSEventData.md) * [`SceneEventData`](SceneEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. --- --- url: 'https://docs.nativescript.org/api/interfaces/BackstackEntry.md' description: Represents an entry in the back stack of a Frame object. --- Defined in: [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/frame-interfaces.ts) Represents an entry in the back stack of a Frame object. ## Properties ### entry ```ts entry: NavigationEntry; ``` Defined in: [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/frame-interfaces.ts) *** ### resolvedPage ```ts resolvedPage: Page; ``` Defined in: [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/frame-interfaces.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/BindingOptions.md' description: The options object used in the Bindable.bind method. --- Defined in: [ui/core/bindable/bindable-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/bindable/bindable-types.ts) The options object used in the Bindable.bind method. ## Properties ### expression? ```ts optional expression?: string; ``` Defined in: [ui/core/bindable/bindable-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/bindable/bindable-types.ts) An expression used for calculations (convertions) based on the value of the property. *** ### sourceProperty ```ts sourceProperty: string; ``` Defined in: [ui/core/bindable/bindable-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/bindable/bindable-types.ts) The property name of the source object (typically the ViewModel) to bind to. *** ### targetProperty ```ts targetProperty: string; ``` Defined in: [ui/core/bindable/bindable-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/bindable/bindable-types.ts) The property name of the target object (that is the Bindable instance) to bind the source property to. *** ### twoWay? ```ts optional twoWay?: boolean; ``` Defined in: [ui/core/bindable/bindable-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/bindable/bindable-types.ts) True to establish a two-way binding, false otherwise. A two-way binding will synchronize both the source and the target property values regardless of which one initiated the change. --- --- url: 'https://docs.nativescript.org/api/interfaces/Cancelable.md' --- Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ## Methods ### cancel() #### Call Signature ```ts cancel(): void; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ##### Returns `void` #### Call Signature ```ts cancel(): void; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ##### Returns `void` --- --- url: 'https://docs.nativescript.org/api/interfaces/CancelableOptions.md' description: Provides options for the dialog. --- Defined in: [ui/dialogs/index.d.ts:140](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L140) Provides options for the dialog. ## Extended by * [`DialogOptions`](DialogOptions.md) * [`ActionOptions`](ActionOptions.md) ## Properties ### cancelable? ```ts optional cancelable?: boolean; ``` Defined in: [ui/dialogs/index.d.ts:144](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L144) \[Android only] Gets or sets if the dialog can be canceled by taping outside of the dialog. *** ### theme? ```ts optional theme?: number; ``` Defined in: [ui/dialogs/index.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L149) \[Android only] Sets the theme of the Dialog. Usable themes can be found: https://developer.android.com/reference/android/R.style --- --- url: 'https://docs.nativescript.org/api/interfaces/ChangedData.md' description: Event args for "changed" event. --- Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable-array/index.ts) Event args for "changed" event. ## Extends * [`EventData`](EventData.md) ## Type Parameters | Type Parameter | | ------ | | `T` | ## Properties ### action ```ts action: string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable-array/index.ts) Change type. *** ### addedCount ```ts addedCount: number; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable-array/index.ts) Number of added items. *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### index ```ts index: number; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable-array/index.ts) Start index. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### removed ```ts removed: T[]; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable-array/index.ts) Removed items. --- --- url: 'https://docs.nativescript.org/api/interfaces/CommonLayoutParams.md' --- Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) ## Properties ### bottomMargin ```ts bottomMargin: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### bottomMarginPercent ```ts bottomMarginPercent: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### height ```ts height: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### heightPercent ```ts heightPercent: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### leftMargin ```ts leftMargin: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### leftMarginPercent ```ts leftMarginPercent: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### rightMargin ```ts rightMargin: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### rightMarginPercent ```ts rightMarginPercent: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### topMargin ```ts topMargin: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### topMarginPercent ```ts topMarginPercent: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### width ```ts width: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) *** ### widthPercent ```ts widthPercent: number; ``` Defined in: [ui/styling/style/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style/index.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/ComponentModule.md' --- Defined in: [ui/builder/component-builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/builder/component-builder/index.ts) ## Properties ### component ```ts component: View; ``` Defined in: [ui/builder/component-builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/builder/component-builder/index.ts) *** ### exports ```ts exports: any; ``` Defined in: [ui/builder/component-builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/builder/component-builder/index.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/ConfirmOptions.md' description: Provides options for the confirm dialog. --- Defined in: [ui/dialogs/index.d.ts:210](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L210) Provides options for the confirm dialog. ## Extends * [`AlertOptions`](AlertOptions.md) ## Extended by * [`PromptOptions`](PromptOptions.md) * [`LoginOptions`](LoginOptions.md) ## Properties ### cancelable? ```ts optional cancelable?: boolean; ``` Defined in: [ui/dialogs/index.d.ts:144](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L144) \[Android only] Gets or sets if the dialog can be canceled by taping outside of the dialog. #### Inherited from [`AlertOptions`](AlertOptions.md).[`cancelable`](AlertOptions.md#cancelable) *** ### cancelButtonText? ```ts optional cancelButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:214](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L214) Gets or sets the Cancel button text. *** ### message? ```ts optional message?: string; ``` Defined in: [ui/dialogs/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L194) Gets or sets the dialog message. #### Inherited from [`AlertOptions`](AlertOptions.md).[`message`](AlertOptions.md#message) *** ### neutralButtonText? ```ts optional neutralButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:219](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L219) Gets or sets the neutral button text. *** ### okButtonText? ```ts optional okButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L204) Gets or sets the OK button text. #### Inherited from [`AlertOptions`](AlertOptions.md).[`okButtonText`](AlertOptions.md#okbuttontext) *** ### theme? ```ts optional theme?: number; ``` Defined in: [ui/dialogs/index.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L149) \[Android only] Sets the theme of the Dialog. Usable themes can be found: https://developer.android.com/reference/android/R.style #### Inherited from [`AlertOptions`](AlertOptions.md).[`theme`](AlertOptions.md#theme) *** ### title? ```ts optional title?: string; ``` Defined in: [ui/dialogs/index.d.ts:189](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L189) Gets or sets the dialog title. #### Inherited from [`AlertOptions`](AlertOptions.md).[`title`](AlertOptions.md#title) --- --- url: 'https://docs.nativescript.org/api/interfaces/CreateViewEventData.md' description: >- Event data containing information for creating a native view that will be added to the visual tree. --- Defined in: [ui/placeholder/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/placeholder/index.d.ts#L40) Event data containing information for creating a native view that will be added to the visual tree. ## Extends * [`EventData`](EventData.md) ## Properties ### context? ```ts optional context?: any; ``` Defined in: [ui/placeholder/index.d.ts:49](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/placeholder/index.d.ts#L49) An optional context for creating the view. *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### view ```ts view: any; ``` Defined in: [ui/placeholder/index.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/placeholder/index.d.ts#L44) The native view that should be added to the visual tree. --- --- url: 'https://docs.nativescript.org/api/interfaces/CssChangedEventData.md' description: Event data containing information about application css change. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information about application css change. ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### cssFile? ```ts optional cssFile?: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) *** ### cssText? ```ts optional cssText?: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/DialogOptions.md' description: Provides options for the dialog. --- Defined in: [ui/dialogs/index.d.ts:185](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L185) Provides options for the dialog. ## Extends * [`CancelableOptions`](CancelableOptions.md) ## Extended by * [`AlertOptions`](AlertOptions.md) ## Properties ### cancelable? ```ts optional cancelable?: boolean; ``` Defined in: [ui/dialogs/index.d.ts:144](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L144) \[Android only] Gets or sets if the dialog can be canceled by taping outside of the dialog. #### Inherited from [`CancelableOptions`](CancelableOptions.md).[`cancelable`](CancelableOptions.md#cancelable) *** ### message? ```ts optional message?: string; ``` Defined in: [ui/dialogs/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L194) Gets or sets the dialog message. *** ### theme? ```ts optional theme?: number; ``` Defined in: [ui/dialogs/index.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L149) \[Android only] Sets the theme of the Dialog. Usable themes can be found: https://developer.android.com/reference/android/R.style #### Inherited from [`CancelableOptions`](CancelableOptions.md).[`theme`](CancelableOptions.md#theme) *** ### title? ```ts optional title?: string; ``` Defined in: [ui/dialogs/index.d.ts:189](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L189) Gets or sets the dialog title. --- --- url: 'https://docs.nativescript.org/api/interfaces/DiscardedErrorEventData.md' description: Event data containing information about discarded application errors. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information about discarded application errors. ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### error ```ts error: NativeScriptError; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/DownloadedData.md' description: Provides data for downloaded event. --- Defined in: [ui/image-cache/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L124) Provides data for downloaded event. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### image ```ts image: ImageSource; ``` Defined in: [ui/image-cache/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L132) Gets the cached image. *** ### key ```ts key: string; ``` Defined in: [ui/image-cache/index.d.ts:128](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L128) A string indentifier of the cached image. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/DownloadError.md' description: Provides data for download error. --- Defined in: [ui/image-cache/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L138) Provides data for download error. ## Extends * [`EventData`](EventData.md) ## Properties ### error ```ts error: Error; ``` Defined in: [ui/image-cache/index.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L146) Gets the error. *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### key ```ts key: string; ``` Defined in: [ui/image-cache/index.d.ts:142](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L142) A string indentifier of the cached image. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/DownloadRequest.md' description: Represents a single download request. --- Defined in: [ui/image-cache/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L7) Represents a single download request. ## Properties ### completed? ```ts optional completed?: (image: any, key: string) => void; ``` Defined in: [ui/image-cache/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L19) An optional function to be called when the download is complete. #### Parameters | Parameter | Type | | ------ | ------ | | `image` | `any` | | `key` | `string` | #### Returns `void` *** ### error? ```ts optional error?: (key: string) => void; ``` Defined in: [ui/image-cache/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L23) An optional function to be called if the download errors. #### Parameters | Parameter | Type | | ------ | ------ | | `key` | `string` | #### Returns `void` *** ### key ```ts key: string; ``` Defined in: [ui/image-cache/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L15) The key used to cache the image. *** ### url ```ts url: string; ``` Defined in: [ui/image-cache/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/image-cache/index.d.ts#L11) The url of the image. --- --- url: 'https://docs.nativescript.org/api/interfaces/EventData.md' description: Base event data. --- Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Base event data. ## Extended by * [`LaunchEventData`](LaunchEventData.md) * [`WindowBaseEventData`](WindowBaseEventData.md) * [`WindowOpenEventData`](WindowOpenEventData.md) * [`WindowCloseEventData`](WindowCloseEventData.md) * [`PrimaryWindowChangedEventData`](PrimaryWindowChangedEventData.md) * [`ChangedData`](ChangedData.md) * [`PropertyChangeData`](PropertyChangeData.md) * [`EventDataValue`](EventDataValue.md) * [`ItemsLoading`](ItemsLoading.md) * [`ShownModallyData`](ShownModallyData.md) * [`AndroidOverflowInsetData`](AndroidOverflowInsetData.md) * [`NavigationData`](NavigationData.md) * [`GestureEventData`](GestureEventData.md) * [`DownloadError`](DownloadError.md) * [`DownloadedData`](DownloadedData.md) * [`ItemEventData`](ItemEventData.md) * [`SearchEventData`](SearchEventData.md) * [`NavigatedData`](NavigatedData.md) * [`CreateViewEventData`](CreateViewEventData.md) * [`ScrollEventData`](ScrollEventData.md) * [`SelectedIndexChangedEventData`](SelectedIndexChangedEventData.md) * [`AccessibilityDecrementEventData`](AccessibilityDecrementEventData.md) * [`AccessibilityIncrementEventData`](AccessibilityIncrementEventData.md) * [`LoadEventData`](LoadEventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. --- --- url: 'https://docs.nativescript.org/api/interfaces/EventDataValue.md' description: Base event data. --- Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Base event data. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### value? ```ts optional value?: boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/FontScaleChangedEventData.md' description: Event data containing information for font scale changed event. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information for font scale changed event. ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### newValue ```ts newValue: number; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) New font scale value. *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/GestureEventData.md' description: Base event data. --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) Base event data. ## Extends * [`EventData`](EventData.md) ## Extended by * [`GestureEventDataWithState`](GestureEventDataWithState.md) * [`TapGestureEventData`](TapGestureEventData.md) * [`SwipeGestureEventData`](SwipeGestureEventData.md) ## Properties ### android ```ts android: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### ios ```ts ios: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### type ```ts type: GestureTypes; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) *** ### view ```ts view: View; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/GestureEventDataWithState.md' description: Base event data. --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) Base event data. ## Extends * [`GestureEventData`](GestureEventData.md) ## Extended by * [`PanGestureEventData`](PanGestureEventData.md) * [`PinchGestureEventData`](PinchGestureEventData.md) * [`RotationGestureEventData`](RotationGestureEventData.md) ## Properties ### android ```ts android: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`android`](GestureEventData.md#android) *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`GestureEventData`](GestureEventData.md).[`eventName`](GestureEventData.md#eventname) *** ### ios ```ts ios: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`ios`](GestureEventData.md#ios) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`GestureEventData`](GestureEventData.md).[`object`](GestureEventData.md#object) *** ### state ```ts state: number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) *** ### type ```ts type: GestureTypes; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`type`](GestureEventData.md#type) *** ### view ```ts view: View; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`view`](GestureEventData.md#view) --- --- url: 'https://docs.nativescript.org/api/interfaces/HttpContent.md' description: Encapsulates the content of an HttpResponse. --- Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Encapsulates the content of an HttpResponse. ## Extends * [`HttpContentHandler`](../namespaces/Http/interfaces/HttpContentHandler.md).`BaseHttpContent` ## Properties ### raw ```ts raw: any; ``` Defined in: [http/http-request-internal/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-request-internal/index.d.ts#L7) Gets the response body as raw data. #### Inherited from ```ts BaseHttpContent.raw ``` *** ### requestURL ```ts requestURL: string; ``` Defined in: [http/http-request-internal/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-request-internal/index.d.ts#L11) Gets the request options URL. #### Inherited from ```ts BaseHttpContent.requestURL ``` *** ### toArrayBuffer ```ts toArrayBuffer: () => ArrayBuffer; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets the response body as ArrayBuffer #### Returns `ArrayBuffer` #### Inherited from [`HttpContentHandler`](../namespaces/Http/interfaces/HttpContentHandler.md).[`toArrayBuffer`](../namespaces/Http/interfaces/HttpContentHandler.md#toarraybuffer) *** ### toFile ```ts toFile: (destinationFilePath?: string) => File; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets the response body as file. #### Parameters | Parameter | Type | | ------ | ------ | | `destinationFilePath?` | `string` | #### Returns [`File`](../classes/File.md) #### Inherited from [`HttpContentHandler`](../namespaces/Http/interfaces/HttpContentHandler.md).[`toFile`](../namespaces/Http/interfaces/HttpContentHandler.md#tofile) *** ### toImage ```ts toImage: () => Promise; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets the response body as ImageSource. #### Returns `Promise`<[`ImageSource`](../classes/ImageSource.md)> #### Inherited from [`HttpContentHandler`](../namespaces/Http/interfaces/HttpContentHandler.md).[`toImage`](../namespaces/Http/interfaces/HttpContentHandler.md#toimage) *** ### toJSON ```ts toJSON: (encoding?: HttpResponseEncoding) => any; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets the response body as JSON object. #### Parameters | Parameter | Type | | ------ | ------ | | `encoding?` | [`HttpResponseEncoding`](../enumerations/HttpResponseEncoding.md) | #### Returns `any` #### Inherited from [`HttpContentHandler`](../namespaces/Http/interfaces/HttpContentHandler.md).[`toJSON`](../namespaces/Http/interfaces/HttpContentHandler.md#tojson) *** ### toNativeImage ```ts toNativeImage: () => Promise; ``` Defined in: [http/http-request-internal/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-request-internal/index.d.ts#L15) Gets the response native image. #### Returns `Promise`<`any`> #### Inherited from ```ts BaseHttpContent.toNativeImage ``` *** ### toNativeString ```ts toNativeString: (encoding?: HttpResponseEncoding) => any; ``` Defined in: [http/http-request-internal/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-request-internal/index.d.ts#L19) Gets the response as native string. #### Parameters | Parameter | Type | | ------ | ------ | | `encoding?` | [`HttpResponseEncoding`](../enumerations/HttpResponseEncoding.md) | #### Returns `any` #### Inherited from ```ts BaseHttpContent.toNativeString ``` *** ### toString ```ts toString: (encoding?: HttpResponseEncoding) => string; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets the response body as string. #### Parameters | Parameter | Type | | ------ | ------ | | `encoding?` | [`HttpResponseEncoding`](../enumerations/HttpResponseEncoding.md) | #### Returns `string` #### Inherited from [`HttpContentHandler`](../namespaces/Http/interfaces/HttpContentHandler.md).[`toString`](../namespaces/Http/interfaces/HttpContentHandler.md#tostring) --- --- url: 'https://docs.nativescript.org/api/interfaces/HttpRequestOptions.md' description: Provides options for the http requests. --- Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Provides options for the http requests. ## Properties ### content? ```ts optional content?: string | FormData | ArrayBuffer | Uint8Array; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets or sets the request body. *** ### dontFollowRedirects? ```ts optional dontFollowRedirects?: boolean; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets or sets whether to *not* follow server's redirection responses. *** ### headers? ```ts optional headers?: any; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets or sets the request headers in JSON format. *** ### method ```ts method: string; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets or sets the request method. *** ### timeout? ```ts optional timeout?: number; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets or sets the request timeout in milliseconds. *** ### url ```ts url: string; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets or sets the request url. --- --- url: 'https://docs.nativescript.org/api/interfaces/HttpResponse.md' description: Encapsulates HTTP-response information from an HTTP-request. --- Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Encapsulates HTTP-response information from an HTTP-request. ## Type Parameters | Type Parameter | Default type | | ------ | ------ | | `T` | [`HttpContent`](HttpContent.md) | ## Properties ### content? ```ts optional content?: T; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets the response content. *** ### headers ```ts headers: Headers; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets the response headers. *** ### statusCode ```ts statusCode: number; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) Gets the response status code. --- --- url: 'https://docs.nativescript.org/api/interfaces/IDevice.md' --- Defined in: [platform/device/index.d.ts:4](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L4) ## Properties ### deviceType ```ts deviceType: "Phone" | "Tablet"; ``` Defined in: [platform/device/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L39) Gets the type of the current device. Available values: "Phone", "Tablet". *** ### language ```ts language: string; ``` Defined in: [platform/device/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L52) Gets the preferred language. For example "en" or "en-US". *** ### manufacturer ```ts manufacturer: string; ``` Defined in: [platform/device/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L9) Gets the manufacturer of the device. For example: "Apple" or "HTC" or "Samsung". *** ### model ```ts model: string; ``` Defined in: [platform/device/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L15) Gets the model of the device. For example: "Nexus 5" or "iPhone". *** ### os ```ts os: string; ``` Defined in: [platform/device/index.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L21) Gets the OS of the device. For example: "Android" or "iOS". *** ### osVersion ```ts osVersion: string; ``` Defined in: [platform/device/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L27) Gets the OS version. For example: 4.4.4(android), 8.1(ios) *** ### region ```ts region: string; ``` Defined in: [platform/device/index.d.ts:57](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L57) Gets the preferred region. For example "US". *** ### sdkVersion ```ts sdkVersion: string; ``` Defined in: [platform/device/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L33) Gets the SDK version. For example: 19(android), 8.1(ios). *** ### uuid ```ts uuid: string; ``` Defined in: [platform/device/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L47) Gets the uuid. On iOS this will return a new uuid if the application is re-installed on the device. If you need to receive the same uuid even after the application has been re-installed on the device, use this plugin: https://www.npmjs.com/package/nativescript-ios-uuid --- --- url: 'https://docs.nativescript.org/api/interfaces/ImageAssetOptions.md' --- Defined in: [image-asset/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/image-asset/index.d.ts#L12) ## Properties ### autoScaleFactor? ```ts optional autoScaleFactor?: boolean; ``` Defined in: [image-asset/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/image-asset/index.d.ts#L16) *** ### height? ```ts optional height?: number; ``` Defined in: [image-asset/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/image-asset/index.d.ts#L14) *** ### keepAspectRatio? ```ts optional keepAspectRatio?: boolean; ``` Defined in: [image-asset/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/image-asset/index.d.ts#L15) *** ### width? ```ts optional width?: number; ``` Defined in: [image-asset/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/image-asset/index.d.ts#L13) --- --- url: 'https://docs.nativescript.org/api/interfaces/InitRootViewEventData.md' description: Event data containing information about root view application. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information about root view application. ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) *** ### rootView ```ts rootView: View; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/IOSView.md' description: >- 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 c... --- Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) 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. ## Ns View View ## Extends * [`View`](../classes/View.md) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L358) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](../classes/View.md).[`_androidContentDescriptionUpdated`](../classes/View.md#_androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_automaticallyAdjustsScrollViewInsets`](../classes/View.md#_automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](../classes/View.md).[`_closeModalCallback`](../classes/View.md#_closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_context`](../classes/View.md#_context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_cssState`](../classes/View.md#_cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_defaultPaddingBottom`](../classes/View.md#_defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_defaultPaddingLeft`](../classes/View.md#_defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_defaultPaddingRight`](../classes/View.md#_defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_defaultPaddingTop`](../classes/View.md#_defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_domId`](../classes/View.md#_domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_ignoreFlexMinWidthHeightReset`](../classes/View.md#_ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_isAddedToNativeVisualTree`](../classes/View.md#_isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_isPaddingRelative`](../classes/View.md#_ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_isStyleScopeHost`](../classes/View.md#_isstylescopehost) *** ### \_nativeWindow? ```ts optional _nativeWindow?: NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:970](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L970) Internal property: The window this view is the root view of. Only ever set on a window's root view; use `getNativeWindow()` to resolve the window of any other view. #### Inherited from [`View`](../classes/View.md).[`_nativeWindow`](../classes/View.md#_nativewindow) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_oldBottom`](../classes/View.md#_oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_oldLeft`](../classes/View.md#_oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_oldRight`](../classes/View.md#_oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_oldTop`](../classes/View.md#_oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`_styleScope`](../classes/View.md#_stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`_suspendNativeUpdatesCount`](../classes/View.md#_suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:260](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L260) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](../classes/View.md).[`accessibilityHidden`](../classes/View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L305) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](../classes/View.md).[`accessibilityHint`](../classes/View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:269](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L269) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`accessibilityIdentifier`](../classes/View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:332](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L332) #### Ns Property #### Inherited from [`View`](../classes/View.md).[`accessibilityIgnoresInvertColors`](../classes/View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L291) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`accessibilityLabel`](../classes/View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:320](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L320) 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`](../classes/View.md).[`accessibilityLanguage`](../classes/View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:312](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L312) 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`](../classes/View.md).[`accessibilityLiveRegion`](../classes/View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:327](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L327) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](../classes/View.md).[`accessibilityMediaSession`](../classes/View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L276) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](../classes/View.md).[`accessibilityRole`](../classes/View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:284](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L284) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](../classes/View.md).[`accessibilityState`](../classes/View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L298) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`accessibilityValue`](../classes/View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:253](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L253) 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`](../classes/View.md).[`accessible`](../classes/View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`alignSelf`](../classes/View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L121) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`View`](../classes/View.md).[`android`](../classes/View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:378](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L378) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`androidDynamicElevationOffset`](../classes/View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:371](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L371) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`androidElevation`](../classes/View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](../classes/View.md).[`androidOverflowEdge`](../classes/View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:364](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L364) #### Ns Property #### Inherited from [`View`](../classes/View.md).[`automationText`](../classes/View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L385) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`background`](../classes/View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:392](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L392) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`LiquidGlassContainer`](../classes/LiquidGlassContainer.md).[`backgroundColor`](../classes/LiquidGlassContainer.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:399](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L399) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`LiquidGlassContainer`](../classes/LiquidGlassContainer.md).[`backgroundImage`](../classes/LiquidGlassContainer.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L134) 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`](../classes/View.md).[`bindingContext`](../classes/View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:162](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L162) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderBottomColor`](../classes/View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L239) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderBottomLeftRadius`](../classes/View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:232](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L232) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderBottomRightRadius`](../classes/View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:197](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L197) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderBottomWidth`](../classes/View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L141) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`LiquidGlassContainer`](../classes/LiquidGlassContainer.md).[`borderColor`](../classes/LiquidGlassContainer.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:169](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L169) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderLeftColor`](../classes/View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L204) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderLeftWidth`](../classes/View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:211](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L211) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderRadius`](../classes/View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:155](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L155) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderRightColor`](../classes/View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:190](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L190) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderRightWidth`](../classes/View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:148](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L148) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderTopColor`](../classes/View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:218](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L218) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderTopLeftRadius`](../classes/View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L225) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderTopRightRadius`](../classes/View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:183](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L183) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderTopWidth`](../classes/View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:176](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L176) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`borderWidth`](../classes/View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:406](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L406) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`LiquidGlassContainer`](../classes/LiquidGlassContainer.md).[`boxShadow`](../classes/LiquidGlassContainer.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`className`](../classes/View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`col`](../classes/View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L246) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`color`](../classes/View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`colSpan`](../classes/View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`column`](../classes/View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](../classes/View.md).[`columnSpan`](../classes/View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:711](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L711) #### Inherited from [`View`](../classes/View.md).[`cssClasses`](../classes/View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:712](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L712) #### Inherited from [`View`](../classes/View.md).[`cssPseudoClasses`](../classes/View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:693](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L693) 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`](../classes/View.md).[`cssType`](../classes/View.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](../classes/View.md).[`defaultVisualState`](../classes/View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:413](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L413) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`direction`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`LiquidGlassContainer`](../classes/LiquidGlassContainer.md).[`dock`](../classes/LiquidGlassContainer.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`domNode`](../classes/View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveBorderBottomWidth`](../classes/View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveBorderLeftWidth`](../classes/View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveBorderRightWidth`](../classes/View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveBorderTopWidth`](../classes/View.md#effectivebordertopwidth) *** ### effectiveColumnGap ```ts effectiveColumnGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveColumnGap`](../classes/View.md#effectivecolumngap) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveHeight`](../classes/View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveLeft`](../classes/View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveMarginBottom`](../classes/View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveMarginLeft`](../classes/View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveMarginRight`](../classes/View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveMarginTop`](../classes/View.md#effectivemargintop) *** ### effectiveMaxHeight ```ts effectiveMaxHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveMaxHeight`](../classes/View.md#effectivemaxheight) *** ### effectiveMaxWidth ```ts effectiveMaxWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveMaxWidth`](../classes/View.md#effectivemaxwidth) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveMinHeight`](../classes/View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveMinWidth`](../classes/View.md#effectiveminwidth) *** ### effectiveRowGap ```ts effectiveRowGap: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveRowGap`](../classes/View.md#effectiverowgap) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveTop`](../classes/View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](../classes/View.md).[`effectiveWidth`](../classes/View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:604](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L604) 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`](../classes/View.md).[`flex`](../classes/View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L599) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`flexFlow`](../classes/View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`flexGrow`](../classes/View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`flexShrink`](../classes/View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`flexWrapBefore`](../classes/View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L457) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`height`](../classes/View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`hidden`](../classes/View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:499](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L499) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`horizontalAlignment`](../classes/View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`id`](../classes/View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:673](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L673) #### Ns Property #### Inherited from [`View`](../classes/View.md).[`ignoreTouchAnimation`](../classes/View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L127) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`View`](../classes/View.md).[`ios`](../classes/View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:339](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L339) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`iosAccessibilityAdjustsFontSize`](../classes/View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:353](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L353) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`iosAccessibilityMaxFontScale`](../classes/View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:346](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L346) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`iosAccessibilityMinFontScale`](../classes/View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:660](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L660) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`iosGlassEffect`](../classes/View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L639) 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`](../classes/View.md).[`iosIgnoreSafeArea`](../classes/View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:625](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L625) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](../classes/View.md).[`iosOverflowSafeArea`](../classes/View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:632](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L632) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](../classes/View.md).[`iosOverflowSafeAreaEnabled`](../classes/View.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`isCollapsed`](../classes/View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:611](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L611) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`isEnabled`](../classes/View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:682](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L682) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](../classes/View.md).[`isLayoutValid`](../classes/View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:618](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L618) 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`](../classes/View.md).[`isUserInteractionEnabled`](../classes/View.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`left`](../classes/View.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:464](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L464) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`margin`](../classes/View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:492](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L492) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`marginBottom`](../classes/View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:471](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L471) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`marginLeft`](../classes/View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:485](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L485) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`marginRight`](../classes/View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:478](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L478) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`marginTop`](../classes/View.md#margintop) *** ### maxHeight ```ts maxHeight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:443](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L443) Gets or sets the maximum height the view may grow to. Accepts a fixed length or a percentage of the available height. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](../classes/View.md).[`maxHeight`](../classes/View.md#maxheight) *** ### maxWidth ```ts maxWidth: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:435](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L435) Gets or sets the maximum width the view may grow to. Accepts a fixed length or a percentage of the available width. Defaults to 'auto' (no maximum). #### Ns Property #### Inherited from [`View`](../classes/View.md).[`maxWidth`](../classes/View.md#maxwidth) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:427](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L427) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`minHeight`](../classes/View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:420](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L420) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`minWidth`](../classes/View.md#minwidth) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:874](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L874) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](../classes/View.md).[`modal`](../classes/View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:687](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L687) Native background states. This is a read-only property. #### Inherited from [`LiquidGlassContainer`](../classes/LiquidGlassContainer.md).[`nativeBackgroundState`](../classes/LiquidGlassContainer.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`nativeViewProtected`](../classes/View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:520](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L520) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`opacity`](../classes/View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`order`](../classes/View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:586](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L586) 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`](../classes/View.md).[`originX`](../classes/View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:593](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L593) 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`](../classes/View.md).[`originY`](../classes/View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](../classes/View.md).[`parent`](../classes/View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L549) 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`](../classes/View.md).[`perspective`](../classes/View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](../classes/ViewBase.md).[`recycleNativeView`](../classes/ViewBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`reusable`](../classes/View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:527](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L527) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`rotate`](../classes/View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:534](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L534) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`rotateX`](../classes/View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:541](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L541) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`rotateY`](../classes/View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`row`](../classes/View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`rowSpan`](../classes/View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:570](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L570) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`scaleX`](../classes/View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:577](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L577) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`scaleY`](../classes/View.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](../classes/View.md).[`sharedTransitionIgnore`](../classes/View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`sharedTransitionTag`](../classes/View.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:709](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L709) 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 [`LiquidGlassContainer`](../classes/LiquidGlassContainer.md).[`statusBarStyle`](../classes/LiquidGlassContainer.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:665](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L665) #### Ns Property #### Inherited from [`View`](../classes/View.md).[`testID`](../classes/View.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`top`](../classes/View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:669](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L669) #### Ns Property #### Inherited from [`LiquidGlassContainer`](../classes/LiquidGlassContainer.md).[`touchAnimation`](../classes/LiquidGlassContainer.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:677](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L677) #### Ns Property #### Inherited from [`View`](../classes/View.md).[`touchDelay`](../classes/View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](../classes/View.md).[`transitionId`](../classes/View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:556](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L556) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`translateX`](../classes/View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:563](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L563) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`translateY`](../classes/View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:506](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L506) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`verticalAlignment`](../classes/View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](../classes/View.md).[`viewController`](../classes/View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:513](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L513) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`visibility`](../classes/View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:653](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L653) visionOS only #### Ns Property #### Inherited from [`LiquidGlassContainer`](../classes/LiquidGlassContainer.md).[`visionHoverStyle`](../classes/LiquidGlassContainer.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:646](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L646) visionOS only #### Ns Property #### Inherited from [`View`](../classes/View.md).[`visionIgnoreHoverStyle`](../classes/View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:450](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L450) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](../classes/View.md).[`width`](../classes/View.md#width) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`backgroundPosition`](../classes/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.1.0-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.1.0-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`](../classes/View.md).[`backgroundRepeat`](../classes/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.1.0-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.1.0-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`backgroundSize`](../classes/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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`class`](../classes/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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`effectivePaddingBottom`](../classes/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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`effectivePaddingLeft`](../classes/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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`effectivePaddingRight`](../classes/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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`effectivePaddingTop`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](../classes/View.md).[`isLoaded`](../classes/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.1.0-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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`nativeView`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](../classes/Page.md) #### Inherited from [`View`](../classes/View.md).[`page`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](../classes/ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`parentNode`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](../classes/Style.md) | ##### Returns `void` #### Inherited from [`View`](../classes/View.md).[`style`](../classes/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.1.0-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.1.0-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`](../classes/View.md).[`textTransform`](../classes/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.1.0-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`](../classes/View.md).[`typeName`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](../classes/View.md).[`visualState`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](../classes/ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_addView`](../classes/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.1.0-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`](../classes/ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_addViewCore`](../classes/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.1.0-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`](../classes/ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](../classes/View.md).[`_addViewToNativeVisualTree`](../classes/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.1.0-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`](../classes/View.md).[`_applyGlassEffect`](../classes/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.1.0-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`](../classes/View.md).[`_applyXmlAttribute`](../classes/View.md#_applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`_batchUpdate`](../classes/View.md#_batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](../classes/View.md).[`_childIndexToNativeChildIndex`](../classes/View.md#_childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:950](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L950) 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`](../classes/View.md).[`_closeAllModalViewsInternal`](../classes/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.1.0-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`](PropertyChangeData.md) #### Inherited from [`View`](../classes/View.md).[`_createPropertyChangeData`](../classes/View.md#_createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`_dialogClosed`](../classes/View.md#_dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:982](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L982) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_eachLayoutView`](../classes/View.md#_eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_emit`](../classes/View.md#_emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:944](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L944) #### Returns `number` #### Inherited from [`View`](../classes/View.md).[`_getNativeViewsCount`](../classes/View.md#_getnativeviewscount) *** ### \_getRootModalHost() ```ts _getRootModalHost(): ViewBase; ``` Defined in: [ui/core/view/index.d.ts:963](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L963) Internal method: Walks up the view tree — through the presenting view of any modal on the way — to the root this view ultimately lives under, which is the root view of its window. #### Returns [`ViewBase`](../classes/ViewBase.md) #### Inherited from [`View`](../classes/View.md).[`_getRootModalHost`](../classes/View.md#_getrootmodalhost) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:956](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L956) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](../classes/ViewBase.md)\[] #### Inherited from [`View`](../classes/View.md).[`_getRootModalViews`](../classes/View.md#_getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1170](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1170) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](../classes/View.md).[`_getValue`](../classes/View.md#_getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1141) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](../classes/View.md).[`_handleLivesync`](../classes/View.md#_handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1164](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1164) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](../classes/View.md) | #### Returns `boolean` #### Inherited from [`View`](../classes/View.md).[`_hasAncestorView`](../classes/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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_hideNativeModalView`](../classes/View.md#_hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](../classes/ViewBase.md) | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_inheritStyles`](../classes/View.md#_inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_inheritStyleScope`](../classes/View.md#_inheritstylescope) *** ### \_isPresentationLayerUpdateSuspended() ```ts _isPresentationLayerUpdateSuspended(): any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Returns `any` *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_layoutParent`](../classes/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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_observe`](../classes/View.md#_observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1154](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1154) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_onAttachedToWindow`](../classes/View.md#_onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1159](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1159) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_onDetachedFromWindow`](../classes/View.md#_ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`_onRootViewReset`](../classes/View.md#_onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:987](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L987) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_onSizeChanged`](../classes/View.md#_onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](../classes/ViewBase.md) | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_parentChanged`](../classes/View.md#_parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_raiseLayoutChangedEvent`](../classes/View.md#_raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_raiseShowingModallyEvent`](../classes/View.md#_raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_raiseShownModallyEvent`](../classes/View.md#_raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/ViewBase.md) | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_removeView`](../classes/View.md#_removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/ViewBase.md) | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_removeViewCore`](../classes/View.md#_removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/ViewBase.md) | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_removeViewFromNativeVisualTree`](../classes/View.md#_removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_resumeNativeUpdates`](../classes/View.md#_resumenativeupdates) *** ### \_resumePresentationLayerUpdates() ```ts _resumePresentationLayerUpdates(): any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Returns `any` *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_setDefaultPaddings`](../classes/View.md#_setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_setupAsRootView`](../classes/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.1.0-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`](../classes/View.md).[`_setupUI`](../classes/View.md#_setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1175](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1175) **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`](../classes/View.md).[`_setValue`](../classes/View.md#_setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`_shouldDelayLayout`](../classes/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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_showNativeModalView`](../classes/View.md#_shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_suspendNativeUpdates`](../classes/View.md#_suspendnativeupdates) *** ### \_suspendPresentationLayerUpdates() ```ts _suspendPresentationLayerUpdates(): any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Returns `any` *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`_tearDownUI`](../classes/View.md#_teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1149) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`_updateStyleScope`](../classes/View.md#_updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1022](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1022) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`accessibilityAnnouncement`](../classes/View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:1027](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1027) Announce screen changed #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`accessibilityScreenChanged`](../classes/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.1.0-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`](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`](../classes/View.md).[`addEventListener`](../classes/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.1.0-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`](../classes/View.md).[`addPseudoClass`](../classes/View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:879](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L879) 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`](../classes/View.md).[`animate`](../classes/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.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`bind`](../classes/View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`callLoaded`](../classes/View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`callUnloaded`](../classes/View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`closeModal`](../classes/View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:884](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L884) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](../classes/Animation.md) #### Inherited from [`View`](../classes/View.md).[`createAnimation`](../classes/View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`createNativeView`](../classes/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.1.0-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`](../classes/View.md).[`deletePseudoClass`](../classes/View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`destroyNode`](../classes/View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`disposeNativeView`](../classes/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.1.0-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](../classes/ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`eachChild`](../classes/View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:1003](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1003) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](../classes/View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`eachChildView`](../classes/View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](../classes/View.md).[`ensureDomNode`](../classes/View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:813](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L813) 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`](../classes/View.md).[`focus`](../classes/View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](../classes/View.md).[`get`](../classes/View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:909](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L909) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](Size.md) #### Inherited from [`View`](../classes/View.md).[`getActualSize`](../classes/View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](../classes/View.md).[`getClosestWindow`](../classes/View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](../classes/View.md).[`getEffectivePaddingShorthand`](../classes/View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:815](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L815) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](../classes/GesturesObserver.md)\[] #### Inherited from [`View`](../classes/View.md).[`getGestureObservers`](../classes/View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:894](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L894) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](../classes/View.md).[`getLocationInWindow`](../classes/View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:899](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L899) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](../classes/View.md).[`getLocationOnScreen`](../classes/View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:904](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L904) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](../classes/View.md) | #### Returns `Point` #### Inherited from [`View`](../classes/View.md).[`getLocationRelativeTo`](../classes/View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L741) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](../classes/View.md).[`getMeasuredHeight`](../classes/View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:743](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L743) #### Returns `number` #### Inherited from [`View`](../classes/View.md).[`getMeasuredState`](../classes/View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:736](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L736) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](../classes/View.md).[`getMeasuredWidth`](../classes/View.md#getmeasuredwidth) *** ### getNativeWindow() ```ts getNativeWindow(): NativeWindow; ``` Defined in: [ui/core/view/index.d.ts:980](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L980) The window currently hosting this view, or `undefined` when the view is not part of any window's view tree — including a view whose window has been closed. Resolved on every call by walking up to the root view — through the presenting view of any modal on the way — so a view re-parented into another window's tree reports the window it moved to. #### Returns [`NativeWindow`](../classes/NativeWindow.md) #### Inherited from [`View`](../classes/View.md).[`getNativeWindow`](../classes/View.md#getnativewindow) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:889](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L889) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](../classes/View.md).[`getSafeAreaInsets`](../classes/View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](../classes/ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](../classes/View.md).[`getViewByDomId`](../classes/View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](../classes/ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](../classes/View.md).[`getViewById`](../classes/View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:992](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L992) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](../classes/View.md).[`hasGestureObservers`](../classes/View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`hasListeners`](../classes/View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`initNativeView`](../classes/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:731](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L731) 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`](../classes/View.md).[`layout`](../classes/View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:776](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L776) 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`](../classes/View.md).[`layoutNativeView`](../classes/View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](../classes/ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`loadView`](../classes/View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:720](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L720) 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`](../classes/View.md).[`measure`](../classes/View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](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`](../classes/View.md).[`notify`](../classes/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.1.0-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`](../classes/View.md).[`notifyPropertyChange`](../classes/View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:826](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L826) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](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`](../classes/View.md).[`off`](../classes/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:838](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L838) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](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`](../classes/View.md).[`on`](../classes/View.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L843) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](../classes/View.md).[`on`](../classes/View.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L848) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](../classes/View.md).[`on`](../classes/View.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:854](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L854) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](../classes/View.md).[`on`](../classes/View.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:859](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L859) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`View`](../classes/View.md).[`on`](../classes/View.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:864](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L864) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](../classes/View.md).[`on`](../classes/View.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:869](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L869) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](../classes/View.md).[`on`](../classes/View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:914](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L914) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](../classes/View.md).[`onBackPressed`](../classes/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.1.0-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`](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`](../classes/View.md).[`once`](../classes/View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:760](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L760) 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`](../classes/View.md).[`onLayout`](../classes/View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`onLoaded`](../classes/View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:751](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L751) 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`](../classes/View.md).[`onMeasure`](../classes/View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`onResumeNativeUpdates`](../classes/View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`onUnloaded`](../classes/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.1.0-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`](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`](../classes/View.md).[`removeEventListener`](../classes/View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`requestLayout`](../classes/View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`resetNativeView`](../classes/View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:1017](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1017) 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`](../classes/View.md).[`sendAccessibilityEvent`](../classes/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.1.0-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`](../classes/View.md).[`set`](../classes/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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`setAccessibilityIdentifier`](../classes/View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`setInlineStyle`](../classes/View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:767](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L767) 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`](../classes/View.md).[`setMeasuredDimension`](../classes/View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`setNativeView`](../classes/View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:997](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L997) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`setOnTouchListener`](../classes/View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md).[`setProperty`](../classes/View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-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`](../classes/View.md) #### Inherited from [`View`](../classes/View.md).[`showModal`](../classes/View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](../classes/View.md).[`toString`](../classes/View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`unbind`](../classes/View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](../classes/ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`unloadView`](../classes/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.1.0-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](../classes/View.md).[`updateStatusBarStyle`](../classes/View.md#updatestatusbarstyle) --- --- url: 'https://docs.nativescript.org/api/interfaces/ItemEventData.md' description: >- Event data containing information for the index and the view associated to a list view item. --- Defined in: [ui/list-view/index.d.ts:242](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L242) Event data containing information for the index and the view associated to a list view item. ## Extends * [`EventData`](EventData.md) ## Properties ### android ```ts android: any; ``` Defined in: [ui/list-view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L266) Gets the native [android widget](http://developer.android.com/reference/android/view/ViewGroup.html) that represents the user interface where the view is hosted. Valid only when running on Android OS. *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### index ```ts index: number; ``` Defined in: [ui/list-view/index.d.ts:246](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L246) The index of the item, for which the event is raised. *** ### ios ```ts ios: any; ``` Defined in: [ui/list-view/index.d.ts:261](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L261) Gets the native [iOS view](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/) that represents the user interface where the view is hosted. Valid only when running on iOS. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### section? ```ts optional section?: number; ``` Defined in: [ui/list-view/index.d.ts:251](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L251) When data is sectioned (any platform that supports sections), this is the section index for the item. *** ### view ```ts view: View; ``` Defined in: [ui/list-view/index.d.ts:256](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L256) The view that is associated to the item, for which the event is raised. --- --- url: 'https://docs.nativescript.org/api/interfaces/ItemsLoading.md' description: Event args for "itemsLoading" event. --- Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) Event args for "itemsLoading" event. ## Extends * [`EventData`](EventData.md) ## Properties ### count ```ts count: number; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) Number of items to load. *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### index ```ts index: number; ``` Defined in: [data/virtual-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/virtual-array/index.ts) Start index. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/ItemsSource.md' --- Defined in: [ui/list-view/index.d.ts:289](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L289) ## Properties ### length ```ts length: number; ``` Defined in: [ui/list-view/index.d.ts:290](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L290) ## Methods ### getItem() ```ts getItem(index: number): any; ``` Defined in: [ui/list-view/index.d.ts:291](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L291) #### Parameters | Parameter | Type | | ------ | ------ | | `index` | `number` | #### Returns `any` --- --- url: 'https://docs.nativescript.org/api/interfaces/KeyedTemplate.md' description: Defines an interface for Template with a key. --- Defined in: [ui/core/view/index.d.ts:1225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1225) Defines an interface for Template with a key. ## Properties ### createView ```ts createView: Template; ``` Defined in: [ui/core/view/index.d.ts:1234](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1234) The function that creates the view. *** ### key ```ts key: string; ``` Defined in: [ui/core/view/index.d.ts:1229](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1229) The unique key of the template. --- --- url: 'https://docs.nativescript.org/api/interfaces/LaunchEventData.md' description: Event data containing information for launch event. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information for launch event. ## Extends * [`EventData`](EventData.md) ## Properties ### android? ```ts optional android?: Intent; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### root? ```ts optional root?: View; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The root view for this Window on iOS or Activity for Android. If not set a new Frame will be created as a root view in order to maintain backwards compatibility. If explicitly set to null, there will be no root view. *** ### savedInstanceState? ```ts optional savedInstanceState?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) --- --- url: >- https://docs.nativescript.org/api/interfaces/LayoutDirectionChangedEventData.md description: Event data containing information for system layout direction changed event. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information for system layout direction changed event. ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### newValue ```ts newValue: LayoutDirectionType; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) New layout direction value. *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/LoadAppCSSEventData.md' description: Event data containing information for the application events. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information for the application events. ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### cssFile ```ts cssFile: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/LoadEventData.md' description: Event data containing information for the loading events of a WebView. --- Defined in: [ui/web-view/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L127) Event data containing information for the loading events of a WebView. ## Extends * [`EventData`](EventData.md) ## Properties ### error ```ts error: string; ``` Defined in: [ui/web-view/index.d.ts:141](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L141) Gets the error (if any). *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### navigationType ```ts navigationType: NavigationType; ``` Defined in: [ui/web-view/index.d.ts:136](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L136) Gets the navigation type of the web-view. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### url ```ts url: string; ``` Defined in: [ui/web-view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L131) Gets the url of the web-view. --- --- url: 'https://docs.nativescript.org/api/interfaces/LoadOptions.md' --- Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/builder/index.ts) ## Properties ### attributes? ```ts optional attributes?: any; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/builder/index.ts) *** ### exports? ```ts optional exports?: any; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/builder/index.ts) *** ### name ```ts name: string; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/builder/index.ts) *** ### page? ```ts optional page?: Page; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/builder/index.ts) *** ### path ```ts path: string; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/builder/index.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/LoginOptions.md' description: Provides options for the login dialog. --- Defined in: [ui/dialogs/index.d.ts:245](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L245) Provides options for the login dialog. ## Extends * [`ConfirmOptions`](ConfirmOptions.md) ## Properties ### cancelable? ```ts optional cancelable?: boolean; ``` Defined in: [ui/dialogs/index.d.ts:144](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L144) \[Android only] Gets or sets if the dialog can be canceled by taping outside of the dialog. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`cancelable`](ConfirmOptions.md#cancelable) *** ### cancelButtonText? ```ts optional cancelButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:214](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L214) Gets or sets the Cancel button text. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`cancelButtonText`](ConfirmOptions.md#cancelbuttontext) *** ### message? ```ts optional message?: string; ``` Defined in: [ui/dialogs/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L194) Gets or sets the dialog message. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`message`](ConfirmOptions.md#message) *** ### neutralButtonText? ```ts optional neutralButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:219](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L219) Gets or sets the neutral button text. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`neutralButtonText`](ConfirmOptions.md#neutralbuttontext) *** ### okButtonText? ```ts optional okButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L204) Gets or sets the OK button text. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`okButtonText`](ConfirmOptions.md#okbuttontext) *** ### password? ```ts optional password?: string; ``` Defined in: [ui/dialogs/index.d.ts:264](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L264) Gets or sets the default text to display in the password input box. *** ### passwordHint? ```ts optional passwordHint?: string; ``` Defined in: [ui/dialogs/index.d.ts:254](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L254) Gets or sets the default text to display as hint in the password input box. *** ### theme? ```ts optional theme?: number; ``` Defined in: [ui/dialogs/index.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L149) \[Android only] Sets the theme of the Dialog. Usable themes can be found: https://developer.android.com/reference/android/R.style #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`theme`](ConfirmOptions.md#theme) *** ### title? ```ts optional title?: string; ``` Defined in: [ui/dialogs/index.d.ts:189](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L189) Gets or sets the dialog title. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`title`](ConfirmOptions.md#title) *** ### userName? ```ts optional userName?: string; ``` Defined in: [ui/dialogs/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L259) Gets or sets the default text to display in the user name input box. *** ### userNameHint? ```ts optional userNameHint?: string; ``` Defined in: [ui/dialogs/index.d.ts:249](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L249) Gets or sets the default text to display as hint in the user name input box. --- --- url: 'https://docs.nativescript.org/api/interfaces/LoginResult.md' description: Provides result data from the login dialog. --- Defined in: [ui/dialogs/index.d.ts:285](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L285) Provides result data from the login dialog. ## Properties ### password ```ts password: string; ``` Defined in: [ui/dialogs/index.d.ts:299](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L299) Gets or sets the password entered in the login dialog. *** ### result ```ts result: boolean; ``` Defined in: [ui/dialogs/index.d.ts:289](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L289) Gets or sets the login dialog boolean result. *** ### userName ```ts userName: string; ``` Defined in: [ui/dialogs/index.d.ts:294](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L294) Gets or sets the user entered in the login dialog. --- --- url: 'https://docs.nativescript.org/api/interfaces/NativeScriptConfig.md' description: >- IMPORTANT: this is not generated automatically due to this issue: https://github.com/microsoft/TypeScript/issues/36763 the reference path above will get rewr... --- Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) 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 ## Properties ### android? ```ts optional android?: IConfigAndroid; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Android specific configurations Various Android specific configurations including Android runtime flags. *** ### appPath? ```ts optional appPath?: string; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Path to the app source directory This is often the `src` or `app` directory however can be changed. *** ### appResourcesPath? ```ts optional appResourcesPath?: string; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) App\_Resources path This is often at the root or inside `src` or `app` directory however can be anywhere. *** ### bundler? ```ts optional bundler?: BundlerType; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Bundler to use for this project. Default is 'webpack'. *** ### bundlerConfigPath? ```ts optional bundlerConfigPath?: string; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Custom bundler config path For example, `vite.config.ts`, `webpack.config.js`, etc. The default is `webpack.config.js` however you can use a custom name and place elsewhere. *** ### cli? ```ts optional cli?: IConfigCLI; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Set cli options *** ### cssParser? ```ts optional cssParser?: "rework" | "nativescript" | "css-tree"; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Set the default CSS parser that NativeScript will use. Default: css-tree *** ### ~~discardUncaughtJsExceptions?~~ ```ts optional discardUncaughtJsExceptions?: boolean; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) #### Deprecated Since runtime 9.1 uncaught JS errors no longer crash the app by default, so this flag is no longer needed. Remove it, or use `uncaughtErrorPolicy`. Still honored while deprecated, with a one-time runtime warning: `true` routes uncaught errors to `Application.discardedErrorEvent` (instead of `uncaughtErrorEvent`), skips the fatal log and suppresses `uncaughtErrorPolicy: 'throw'`. `false` is ignored - it does NOT restore the old crash-on-uncaught behavior; set `uncaughtErrorPolicy: 'throw'` for that. *** ### embed? ```ts optional embed?: IConfigEmbed; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) For embedding into existing platform host projects. *** ### hooks? ```ts optional hooks?: IConfigHook[]; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Set project persistent hooks to run *** ### id? ```ts optional id?: string; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) App's bundle id Used for both iOS and Android if they use the same bundle id. You can override per platform in the respective platform specific configurations. *** ### ignoredNativeDependencies? ```ts optional ignoredNativeDependencies?: string[]; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Optionally specify a list of npm package names for which you would like the NativeScript CLI to ignore when attaching native dependencies to the build *** ### ios? ```ts optional ios?: IConfigIOS; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) iOS specific configurations Various iOS specific configurations including iOS runtime flags. *** ### logScriptLoading? ```ts optional logScriptLoading?: boolean; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Enable runtime logging of script loading. *** ### main? ```ts optional main?: string; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) App's main entry file - this setting overrides the value set in package.json *** ### overridePods? ```ts optional overridePods?: string; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) *** ### previewAppSchema? ```ts optional previewAppSchema?: string; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) *** ### profiling? ```ts optional profiling?: InstrumentationMode; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Enable profiling for the application. Default: no profiling In most cases when profiling, you will want to use "timeline" *** ### projectName? ```ts optional projectName?: string; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Custom platform project name. By default, the platforms/{platform}/{name} is based on the basename of the project directory. You can override that to use a name of your choice by setting this. *** ### security? ```ts optional security?: ISecurityConfig; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Security configurations *** ### shared? ```ts optional shared?: boolean; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) *** ### showErrorDisplay? ```ts optional showErrorDisplay?: boolean; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Show visual error display when an uncaught JS exception occurs. *** ### uncaughtErrorPolicy? ```ts optional uncaughtErrorPolicy?: UncaughtErrorPolicy; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Policy for uncaught JS errors and unhandled promise rejections that no listener handled. Default: `'report'` - the app keeps running. Requires runtime 9.1+ (iOS and Android); older runtimes ignore the key and crash on uncaught errors as before. Read only from the top level of the config - a value nested under `ios` / `android` has no effect. To handle individual errors instead, add a `globalThis` listener and cancel the event: `globalThis.addEventListener('unhandledrejection', (e) => e.preventDefault())`. *** ### visionos? ```ts optional visionos?: IConfigVisionOS; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) Vision Pro specific configurations Various VisionOS specific configurations including iOS runtime flags. *** ### ~~webpackConfigPath?~~ ```ts optional webpackConfigPath?: string; ``` Defined in: [config/config.interface.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/config/config.interface.ts) #### Deprecated Use `bundlerConfigPath` instead. Custom webpack config path The default is `webpack.config.js` in the root however you can use a custom name and place elsewhere. --- --- url: 'https://docs.nativescript.org/api/interfaces/NativeScriptError.md' description: >- An extended JavaScript Error which will have the nativeError property initialized in case the error is caused by executing platform-specific code. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) An extended JavaScript Error which will have the nativeError property initialized in case the error is caused by executing platform-specific code. ## Extends * `Error` ## Properties ### nativeException? ```ts optional nativeException?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Represents the native error object. *** ### stack? ```ts optional stack?: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Javascript portion of stack trace. #### Overrides ```ts Error.stack ``` *** ### stackTrace? ```ts optional stackTrace?: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The native stack trace. --- --- url: 'https://docs.nativescript.org/api/interfaces/NativeWindowEventData.md' description: Base event data for NativeWindow events. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Base event data for NativeWindow events. ## Extends * [`WindowBaseEventData`](WindowBaseEventData.md) ## Extended by * [`WindowOrientationChangedEventData`](WindowOrientationChangedEventData.md) * [`WindowSystemAppearanceChangedEventData`](WindowSystemAppearanceChangedEventData.md) * [`WindowLayoutDirectionChangedEventData`](WindowLayoutDirectionChangedEventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`WindowBaseEventData`](WindowBaseEventData.md).[`eventName`](WindowBaseEventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`WindowBaseEventData`](WindowBaseEventData.md).[`object`](WindowBaseEventData.md#object) *** ### window ```ts window: NativeWindow; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The NativeWindow that emitted the event. #### Overrides [`WindowBaseEventData`](WindowBaseEventData.md).[`window`](WindowBaseEventData.md#window) --- --- url: 'https://docs.nativescript.org/api/interfaces/NavigatedData.md' description: Defines the data for the page navigation events. --- Defined in: [ui/page/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/page/index.d.ts#L15) Defines the data for the page navigation events. ## Extends * [`EventData`](EventData.md) ## Properties ### context ```ts context: any; ``` Defined in: [ui/page/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/page/index.d.ts#L19) The navigation context (optional, may be undefined) passed to the page navigation events method. *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### isBackNavigation ```ts isBackNavigation: boolean; ``` Defined in: [ui/page/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/page/index.d.ts#L24) Represents if a navigation is forward or backward. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/NavigationContext.md' description: Represents a context passed to navigation methods. --- Defined in: [ui/frame/index.d.ts:418](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L418) Represents a context passed to navigation methods. ## Properties ### entry? ```ts optional entry?: BackstackEntry; ``` Defined in: [ui/frame/index.d.ts:419](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L419) *** ### ~~isBackNavigation~~ ```ts isBackNavigation: boolean; ``` Defined in: [ui/frame/index.d.ts:423](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L423) #### Deprecated Use navigationType instead. *** ### navigationType ```ts navigationType: NavigationType; ``` Defined in: [ui/frame/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L424) --- --- url: 'https://docs.nativescript.org/api/interfaces/NavigationData.md' description: Base event data. --- Defined in: [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/frame-interfaces.ts) Base event data. ## Extends * [`EventData`](EventData.md) ## Properties ### entry? ```ts optional entry?: BackstackEntry; ``` Defined in: [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/frame-interfaces.ts) *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### fromEntry? ```ts optional fromEntry?: BackstackEntry; ``` Defined in: [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/frame-interfaces.ts) *** ### isBack? ```ts optional isBack?: boolean; ``` Defined in: [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/frame-interfaces.ts) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/NavigationEntry.md' description: Represents an entry in passed to navigate method. --- Defined in: [ui/frame/index.d.ts:372](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L372) Represents an entry in passed to navigate method. ## Extends * [`ViewEntry`](ViewEntry.md) ## Properties ### animated? ```ts optional animated?: boolean; ``` Defined in: [ui/frame/index.d.ts:386](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L386) True to navigate to the new Page using animated transitions, false otherwise. *** ### backstackVisible? ```ts optional backstackVisible?: boolean; ``` Defined in: [ui/frame/index.d.ts:407](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L407) True to record the navigation in the backstack, false otherwise. If the parameter is set to false then the Page will be displayed but once navigated from it will not be able to be navigated back to. *** ### bindingContext? ```ts optional bindingContext?: any; ``` Defined in: [ui/frame/index.d.ts:381](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L381) An object to become the binding context of the page navigating to. Optional. *** ### clearHistory? ```ts optional clearHistory?: boolean; ``` Defined in: [ui/frame/index.d.ts:412](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L412) True to clear the navigation history, false otherwise. Very useful when navigating away from login pages. *** ### context? ```ts optional context?: any; ``` Defined in: [ui/frame/index.d.ts:376](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L376) An object passed to the onNavigatedTo callback of the Page. Typically this is used to pass some data among pages. Optional. *** ### create? ```ts optional create?: () => View; ``` Defined in: [ui/frame/index.d.ts:367](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L367) A function used to create the View instance. Optional. #### Returns [`View`](../classes/View.md) #### Inherited from [`ViewEntry`](ViewEntry.md).[`create`](ViewEntry.md#create) *** ### moduleName? ```ts optional moduleName?: string; ``` Defined in: [ui/frame/index.d.ts:362](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L362) The name of the module containing the View instance to load. Optional. #### Inherited from [`ViewEntry`](ViewEntry.md).[`moduleName`](ViewEntry.md#modulename) *** ### transition? ```ts optional transition?: NavigationTransition; ``` Defined in: [ui/frame/index.d.ts:391](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L391) Specifies an optional navigation transition for all platforms. If not specified, the default platform transition will be used. *** ### transitionAndroid? ```ts optional transitionAndroid?: NavigationTransition; ``` Defined in: [ui/frame/index.d.ts:401](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L401) Specifies an optional navigation transition for Android. If not specified, the default platform transition will be used. *** ### transitioniOS? ```ts optional transitioniOS?: NavigationTransition; ``` Defined in: [ui/frame/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L396) Specifies an optional navigation transition for iOS. If not specified, the default platform transition will be used. --- --- url: 'https://docs.nativescript.org/api/interfaces/NavigationTransition.md' description: Represents an object specifying a page navigation transition. --- Defined in: [ui/frame/index.d.ts:430](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L430) Represents an object specifying a page navigation transition. ## Properties ### curve? ```ts optional curve?: any; ``` Defined in: [ui/frame/index.d.ts:463](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L463) An optional transition animation curve. Possible values are contained in the [AnimationCurve enumeration](https://docs.nativescript.org/api-reference/modules/_ui_enums_.animationcurve.html). Alternatively, you can pass an instance of type UIViewAnimationCurve for iOS or android.animation.TimeInterpolator for Android. *** ### duration? ```ts optional duration?: number; ``` Defined in: [ui/frame/index.d.ts:457](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L457) The length of the transition in milliseconds. If you do not specify this, the default platform transition duration will be used. *** ### instance? ```ts optional instance?: Transition; ``` Defined in: [ui/frame/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L452) An user-defined instance of the "ui/transition".Transition class. *** ### name? ```ts optional name?: string; ``` Defined in: [ui/frame/index.d.ts:447](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L447) Can be one of the built-in transitions: * curl (same as curlUp) (iOS only) * curlUp (iOS only) * curlDown (iOS only) * explode (Android Lollipop(21) and up only) * fade * flip (same as flipRight) * flipRight * flipLeft * slide (same as slideLeft) * slideLeft * slideRight * slideTop * slideBottom --- --- url: 'https://docs.nativescript.org/api/interfaces/OrientationChangedEventData.md' description: Event data containing information for orientation changed event. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information for orientation changed event. ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### newValue ```ts newValue: "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) New orientation value. *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/Pair.md' --- Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ## Properties ### x ```ts x: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### y ```ts y: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/PanGestureEventData.md' description: Base event data. --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) Base event data. ## Extends * [`GestureEventDataWithState`](GestureEventDataWithState.md) ## Properties ### android ```ts android: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`android`](GestureEventDataWithState.md#android) *** ### deltaX ```ts deltaX: number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) *** ### deltaY ```ts deltaY: number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`eventName`](GestureEventDataWithState.md#eventname) *** ### ios ```ts ios: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`ios`](GestureEventDataWithState.md#ios) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`object`](GestureEventDataWithState.md#object) *** ### state ```ts state: number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`state`](GestureEventDataWithState.md#state) *** ### type ```ts type: GestureTypes; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`type`](GestureEventDataWithState.md#type) *** ### view ```ts view: View; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`view`](GestureEventDataWithState.md#view) --- --- url: 'https://docs.nativescript.org/api/interfaces/PinchGestureEventData.md' description: Base event data. --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) Base event data. ## Extends * [`GestureEventDataWithState`](GestureEventDataWithState.md) ## Properties ### android ```ts android: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`android`](GestureEventDataWithState.md#android) *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`eventName`](GestureEventDataWithState.md#eventname) *** ### ios ```ts ios: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`ios`](GestureEventDataWithState.md#ios) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`object`](GestureEventDataWithState.md#object) *** ### scale ```ts scale: number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) *** ### state ```ts state: number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`state`](GestureEventDataWithState.md#state) *** ### type ```ts type: GestureTypes; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`type`](GestureEventDataWithState.md#type) *** ### view ```ts view: View; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`view`](GestureEventDataWithState.md#view) ## Methods ### getFocusX() ```ts getFocusX(): number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Returns `number` *** ### getFocusY() ```ts getFocusY(): number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Returns `number` --- --- url: 'https://docs.nativescript.org/api/interfaces/PlatformContext.md' description: Used with qualifier matchers and module resolution --- Defined in: [module-name-resolver/qualifier-matcher/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/module-name-resolver/qualifier-matcher/index.ts) Used with qualifier matchers and module resolution ## Properties ### deviceType ```ts deviceType: string; ``` Defined in: [module-name-resolver/qualifier-matcher/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/module-name-resolver/qualifier-matcher/index.ts) *** ### height ```ts height: number; ``` Defined in: [module-name-resolver/qualifier-matcher/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/module-name-resolver/qualifier-matcher/index.ts) *** ### os ```ts os: string; ``` Defined in: [module-name-resolver/qualifier-matcher/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/module-name-resolver/qualifier-matcher/index.ts) *** ### width ```ts width: number; ``` Defined in: [module-name-resolver/qualifier-matcher/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/module-name-resolver/qualifier-matcher/index.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/Point3D.md' --- Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ## Properties ### x ```ts x: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### y ```ts y: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### z ```ts z: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/PrimaryWindowChangedEventData.md' description: Event data fired on Application when the primary window changes. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Event data fired on Application when the primary window changes. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### window ```ts window: NativeWindow; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The NativeWindow that is now primary. --- --- url: 'https://docs.nativescript.org/api/interfaces/PromptOptions.md' description: Provides options for the prompt dialog. --- Defined in: [ui/dialogs/index.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L225) Provides options for the prompt dialog. ## Extends * [`ConfirmOptions`](ConfirmOptions.md) ## Properties ### cancelable? ```ts optional cancelable?: boolean; ``` Defined in: [ui/dialogs/index.d.ts:144](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L144) \[Android only] Gets or sets if the dialog can be canceled by taping outside of the dialog. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`cancelable`](ConfirmOptions.md#cancelable) *** ### cancelButtonText? ```ts optional cancelButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:214](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L214) Gets or sets the Cancel button text. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`cancelButtonText`](ConfirmOptions.md#cancelbuttontext) *** ### capitalizationType? ```ts optional capitalizationType?: string; ``` Defined in: [ui/dialogs/index.d.ts:239](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L239) Gets or sets the prompt capitalizationType (none, all, sentences, or words). *** ### defaultText? ```ts optional defaultText?: string; ``` Defined in: [ui/dialogs/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L229) Gets or sets the default text to display in the input box. *** ### inputType? ```ts optional inputType?: string; ``` Defined in: [ui/dialogs/index.d.ts:234](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L234) Gets or sets the prompt input type (plain text, password, or email). *** ### message? ```ts optional message?: string; ``` Defined in: [ui/dialogs/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L194) Gets or sets the dialog message. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`message`](ConfirmOptions.md#message) *** ### neutralButtonText? ```ts optional neutralButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:219](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L219) Gets or sets the neutral button text. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`neutralButtonText`](ConfirmOptions.md#neutralbuttontext) *** ### okButtonText? ```ts optional okButtonText?: string; ``` Defined in: [ui/dialogs/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L204) Gets or sets the OK button text. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`okButtonText`](ConfirmOptions.md#okbuttontext) *** ### theme? ```ts optional theme?: number; ``` Defined in: [ui/dialogs/index.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L149) \[Android only] Sets the theme of the Dialog. Usable themes can be found: https://developer.android.com/reference/android/R.style #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`theme`](ConfirmOptions.md#theme) *** ### title? ```ts optional title?: string; ``` Defined in: [ui/dialogs/index.d.ts:189](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L189) Gets or sets the dialog title. #### Inherited from [`ConfirmOptions`](ConfirmOptions.md).[`title`](ConfirmOptions.md#title) --- --- url: 'https://docs.nativescript.org/api/interfaces/PromptResult.md' description: Provides result data from the prompt dialog. --- Defined in: [ui/dialogs/index.d.ts:270](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L270) Provides result data from the prompt dialog. ## Properties ### result ```ts result: boolean; ``` Defined in: [ui/dialogs/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L274) Gets or sets the prompt dialog boolean result. *** ### text ```ts text: string; ``` Defined in: [ui/dialogs/index.d.ts:279](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L279) Gets or sets the text entered in the prompt dialog. --- --- url: 'https://docs.nativescript.org/api/interfaces/PropertyAnimation.md' --- Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ## Extended by * [`PropertyAnimationInfo`](PropertyAnimationInfo.md) ## Properties ### curve? ```ts optional curve?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### delay? ```ts optional delay?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### duration? ```ts optional duration?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### iterations? ```ts optional iterations?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### property ```ts property: string; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### target ```ts target: View; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### value ```ts value: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/PropertyAnimationInfo.md' --- Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ## Extends * [`PropertyAnimation`](PropertyAnimation.md) ## Properties ### \_originalValue? ```ts optional _originalValue?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### \_propertyResetCallback? ```ts optional _propertyResetCallback?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### curve? ```ts optional curve?: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`PropertyAnimation`](PropertyAnimation.md).[`curve`](PropertyAnimation.md#curve) *** ### delay? ```ts optional delay?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`PropertyAnimation`](PropertyAnimation.md).[`delay`](PropertyAnimation.md#delay) *** ### duration? ```ts optional duration?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`PropertyAnimation`](PropertyAnimation.md).[`duration`](PropertyAnimation.md#duration) *** ### iterations? ```ts optional iterations?: number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`PropertyAnimation`](PropertyAnimation.md).[`iterations`](PropertyAnimation.md#iterations) *** ### property ```ts property: string; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`PropertyAnimation`](PropertyAnimation.md).[`property`](PropertyAnimation.md#property) *** ### target ```ts target: View; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`PropertyAnimation`](PropertyAnimation.md).[`target`](PropertyAnimation.md#target) *** ### value ```ts value: any; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) #### Inherited from [`PropertyAnimation`](PropertyAnimation.md).[`value`](PropertyAnimation.md#value) --- --- url: 'https://docs.nativescript.org/api/interfaces/PropertyChangeData.md' description: Data for the "propertyChange" event. --- Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) Data for the "propertyChange" event. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### oldValue? ```ts optional oldValue?: any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The previous value of the property. *** ### propertyName ```ts propertyName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the property that has changed. *** ### value ```ts value: any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The new value of the property. --- --- url: 'https://docs.nativescript.org/api/interfaces/RootLayoutOptions.md' --- Defined in: [ui/layouts/root-layout/index.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L21) ## Properties ### animation? ```ts optional animation?: { enterFrom?: TransitionAnimation; exitTo?: TransitionAnimation; }; ``` Defined in: [ui/layouts/root-layout/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L23) #### enterFrom? ```ts optional enterFrom?: TransitionAnimation; ``` #### exitTo? ```ts optional exitTo?: TransitionAnimation; ``` *** ### shadeCover? ```ts optional shadeCover?: ShadeCoverOptions; ``` Defined in: [ui/layouts/root-layout/index.d.ts:22](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L22) --- --- url: 'https://docs.nativescript.org/api/interfaces/RotationGestureEventData.md' description: Base event data. --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) Base event data. ## Extends * [`GestureEventDataWithState`](GestureEventDataWithState.md) ## Properties ### android ```ts android: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`android`](GestureEventDataWithState.md#android) *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`eventName`](GestureEventDataWithState.md#eventname) *** ### ios ```ts ios: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`ios`](GestureEventDataWithState.md#ios) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`object`](GestureEventDataWithState.md#object) *** ### rotation ```ts rotation: number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) *** ### state ```ts state: number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`state`](GestureEventDataWithState.md#state) *** ### type ```ts type: GestureTypes; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`type`](GestureEventDataWithState.md#type) *** ### view ```ts view: View; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventDataWithState`](GestureEventDataWithState.md).[`view`](GestureEventDataWithState.md#view) --- --- url: >- https://docs.nativescript.org/api/interfaces/SceneContinueUserActivityEventData.md description: >- iOS event data for the `sceneContinueUserActivity` event, raised for Handoff and universal links directed at a scene. Replaces the `applicationContinueUserAc... --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) iOS event data for the `sceneContinueUserActivity` event, raised for Handoff and universal links directed at a scene. Replaces the `applicationContinueUserActivityRestorationHandler` app delegate callback, which UIKit no longer calls once the app adopts scenes. ## Extends * [`SceneEventData`](SceneEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`SceneEventData`](SceneEventData.md).[`android`](SceneEventData.md#android) *** ### connectionOptions? ```ts optional connectionOptions?: UISceneConnectionOptions; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Scene connection options (for sceneWillConnect event). #### Inherited from [`SceneEventData`](SceneEventData.md).[`connectionOptions`](SceneEventData.md#connectionoptions) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`SceneEventData`](SceneEventData.md).[`eventName`](SceneEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`SceneEventData`](SceneEventData.md).[`ios`](SceneEventData.md#ios) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`SceneEventData`](SceneEventData.md).[`object`](SceneEventData.md#object) *** ### scene? ```ts optional scene?: UIWindowScene; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The UIWindowScene instance associated with this event. #### Inherited from [`SceneEventData`](SceneEventData.md).[`scene`](SceneEventData.md#scene) *** ### uiWindow? ```ts optional uiWindow?: UIWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The UIWindow associated with this scene (if applicable). #### Inherited from [`SceneEventData`](SceneEventData.md).[`uiWindow`](SceneEventData.md#uiwindow) *** ### userActivity ```ts userActivity: NSUserActivity; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The activity to continue. *** ### userInfo? ```ts optional userInfo?: NSDictionary; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Additional user info from the notification. #### Inherited from [`SceneEventData`](SceneEventData.md).[`userInfo`](SceneEventData.md#userinfo) *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the scene belongs to, when one is registered for it. #### Inherited from [`SceneEventData`](SceneEventData.md).[`window`](SceneEventData.md#window) --- --- url: 'https://docs.nativescript.org/api/interfaces/SceneEventData.md' description: iOS Event data containing information for scene lifecycle events (iOS 13+). --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) iOS Event data containing information for scene lifecycle events (iOS 13+). ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Extended by * [`SceneOpenURLContextsEventData`](SceneOpenURLContextsEventData.md) * [`SceneContinueUserActivityEventData`](SceneContinueUserActivityEventData.md) * [`ScenePerformActionForShortcutItemEventData`](ScenePerformActionForShortcutItemEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### connectionOptions? ```ts optional connectionOptions?: UISceneConnectionOptions; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Scene connection options (for sceneWillConnect event). *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) *** ### scene? ```ts optional scene?: UIWindowScene; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The UIWindowScene instance associated with this event. *** ### uiWindow? ```ts optional uiWindow?: UIWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The UIWindow associated with this scene (if applicable). *** ### userInfo? ```ts optional userInfo?: NSDictionary; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Additional user info from the notification. *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the scene belongs to, when one is registered for it. --- --- url: 'https://docs.nativescript.org/api/interfaces/SceneOpenURLContextsEventData.md' description: >- iOS event data for the `sceneOpenURLContexts` event, raised when a scene is asked to open URLs. Replaces the `applicationOpenURLOptions` app delegate callbac... --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) iOS event data for the `sceneOpenURLContexts` event, raised when a scene is asked to open URLs. Replaces the `applicationOpenURLOptions` app delegate callback, which UIKit no longer calls once the app adopts scenes. Handlers registered through `Application.ios.addDelegateHandler('applicationOpenURLOptions', ...)` still run, once per context. ## Extends * [`SceneEventData`](SceneEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`SceneEventData`](SceneEventData.md).[`android`](SceneEventData.md#android) *** ### connectionOptions? ```ts optional connectionOptions?: UISceneConnectionOptions; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Scene connection options (for sceneWillConnect event). #### Inherited from [`SceneEventData`](SceneEventData.md).[`connectionOptions`](SceneEventData.md#connectionoptions) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`SceneEventData`](SceneEventData.md).[`eventName`](SceneEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`SceneEventData`](SceneEventData.md).[`ios`](SceneEventData.md#ios) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`SceneEventData`](SceneEventData.md).[`object`](SceneEventData.md#object) *** ### scene? ```ts optional scene?: UIWindowScene; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The UIWindowScene instance associated with this event. #### Inherited from [`SceneEventData`](SceneEventData.md).[`scene`](SceneEventData.md#scene) *** ### uiWindow? ```ts optional uiWindow?: UIWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The UIWindow associated with this scene (if applicable). #### Inherited from [`SceneEventData`](SceneEventData.md).[`uiWindow`](SceneEventData.md#uiwindow) *** ### urlContexts ```ts urlContexts: NSSet; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The URL contexts to open. A single delivery may carry more than one URL. *** ### userInfo? ```ts optional userInfo?: NSDictionary; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Additional user info from the notification. #### Inherited from [`SceneEventData`](SceneEventData.md).[`userInfo`](SceneEventData.md#userinfo) *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the scene belongs to, when one is registered for it. #### Inherited from [`SceneEventData`](SceneEventData.md).[`window`](SceneEventData.md#window) --- --- url: >- https://docs.nativescript.org/api/interfaces/ScenePerformActionForShortcutItemEventData.md description: >- iOS event data for the `scenePerformActionForShortcutItem` event, raised when a home screen quick action targets a scene. Replaces the `applicationPerformAct... --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) iOS event data for the `scenePerformActionForShortcutItem` event, raised when a home screen quick action targets a scene. Replaces the `applicationPerformActionForShortcutItemCompletionHandler` app delegate callback, which UIKit no longer calls once the app adopts scenes. ## Extends * [`SceneEventData`](SceneEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`SceneEventData`](SceneEventData.md).[`android`](SceneEventData.md#android) *** ### completionHandler ```ts completionHandler: (handled: boolean) => void; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Reports back to iOS whether the action was handled. Only the first call is delivered; later ones are ignored. Unless a legacy `applicationPerformActionForShortcutItemCompletionHandler` handler is registered — in which case that handler owns the result — the action is reported as unhandled as soon as the listeners return, so a listener that wants to report otherwise must call this before returning. #### Parameters | Parameter | Type | | ------ | ------ | | `handled` | `boolean` | #### Returns `void` *** ### connectionOptions? ```ts optional connectionOptions?: UISceneConnectionOptions; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Scene connection options (for sceneWillConnect event). #### Inherited from [`SceneEventData`](SceneEventData.md).[`connectionOptions`](SceneEventData.md#connectionoptions) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`SceneEventData`](SceneEventData.md).[`eventName`](SceneEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`SceneEventData`](SceneEventData.md).[`ios`](SceneEventData.md#ios) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`SceneEventData`](SceneEventData.md).[`object`](SceneEventData.md#object) *** ### scene? ```ts optional scene?: UIWindowScene; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The UIWindowScene instance associated with this event. #### Inherited from [`SceneEventData`](SceneEventData.md).[`scene`](SceneEventData.md#scene) *** ### shortcutItem ```ts shortcutItem: UIApplicationShortcutItem; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The quick action the user selected. *** ### uiWindow? ```ts optional uiWindow?: UIWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The UIWindow associated with this scene (if applicable). #### Inherited from [`SceneEventData`](SceneEventData.md).[`uiWindow`](SceneEventData.md#uiwindow) *** ### userInfo? ```ts optional userInfo?: NSDictionary; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Additional user info from the notification. #### Inherited from [`SceneEventData`](SceneEventData.md).[`userInfo`](SceneEventData.md#userinfo) *** ### window? ```ts optional window?: NativeWindow; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The NativeWindow the scene belongs to, when one is registered for it. #### Inherited from [`SceneEventData`](SceneEventData.md).[`window`](SceneEventData.md#window) --- --- url: 'https://docs.nativescript.org/api/interfaces/ScrollEventData.md' description: Base event data. --- Defined in: [ui/scroll-view/index.d.ts:105](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L105) Base event data. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### scrollX ```ts scrollX: number; ``` Defined in: [ui/scroll-view/index.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L106) *** ### scrollY ```ts scrollY: number; ``` Defined in: [ui/scroll-view/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/scroll-view/index.d.ts#L107) --- --- url: 'https://docs.nativescript.org/api/interfaces/SearchEventData.md' description: Event data containing information for the search text change event. --- Defined in: [ui/list-view/index.d.ts:272](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L272) Event data containing information for the search text change event. ## Extends * [`EventData`](EventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [ui/list-view/index.d.ts:286](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L286) Gets the native Android search view. Valid only when running on Android OS. *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [ui/list-view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L281) Gets the native [iOS UISearchController](https://developer.apple.com/documentation/uikit/uisearchcontroller) that represents the search controller. Valid only when running on iOS. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### text ```ts text: string; ``` Defined in: [ui/list-view/index.d.ts:276](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L276) The current search text value. --- --- url: 'https://docs.nativescript.org/api/interfaces/SelectedIndexChangedEventData.md' description: Defines the data for the SegmentedBar.selectedIndexChanged event. --- Defined in: [ui/segmented-bar/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L25) Defines the data for the SegmentedBar.selectedIndexChanged event. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### newIndex ```ts newIndex: number; ``` Defined in: [ui/segmented-bar/index.d.ts:34](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L34) The new selected index. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### oldIndex ```ts oldIndex: number; ``` Defined in: [ui/segmented-bar/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/segmented-bar/index.d.ts#L29) The old selected index. --- --- url: 'https://docs.nativescript.org/api/interfaces/ShadeCoverOptions.md' --- Defined in: [ui/layouts/root-layout/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L29) ## Properties ### animation? ```ts optional animation?: { enterFrom?: TransitionAnimation; exitTo?: TransitionAnimation; }; ``` Defined in: [ui/layouts/root-layout/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L33) #### enterFrom? ```ts optional enterFrom?: TransitionAnimation; ``` #### exitTo? ```ts optional exitTo?: TransitionAnimation; ``` *** ### color? ```ts optional color?: string; ``` Defined in: [ui/layouts/root-layout/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L31) *** ### ignoreShadeRestore? ```ts optional ignoreShadeRestore?: boolean; ``` Defined in: [ui/layouts/root-layout/index.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L37) *** ### opacity? ```ts optional opacity?: number; ``` Defined in: [ui/layouts/root-layout/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L30) *** ### tapToClose? ```ts optional tapToClose?: boolean; ``` Defined in: [ui/layouts/root-layout/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L32) --- --- url: 'https://docs.nativescript.org/api/interfaces/ShadowCSSValues.md' --- Defined in: [ui/styling/css-shadow.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-shadow.ts) ## Properties ### blurRadius? ```ts optional blurRadius?: LengthType; ``` Defined in: [ui/styling/css-shadow.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-shadow.ts) *** ### color ```ts color: Color; ``` Defined in: [ui/styling/css-shadow.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-shadow.ts) *** ### inset ```ts inset: boolean; ``` Defined in: [ui/styling/css-shadow.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-shadow.ts) *** ### offsetX ```ts offsetX: LengthType; ``` Defined in: [ui/styling/css-shadow.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-shadow.ts) *** ### offsetY ```ts offsetY: LengthType; ``` Defined in: [ui/styling/css-shadow.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-shadow.ts) *** ### spreadRadius? ```ts optional spreadRadius?: LengthType; ``` Defined in: [ui/styling/css-shadow.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-shadow.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/SharedTransitionConfig.md' --- Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) ## Properties ### interactive? ```ts optional interactive?: { dismiss?: SharedTransitionInteractiveOptions; }; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Interactive transition settings. (iOS only at the moment) #### dismiss? ```ts optional dismiss?: SharedTransitionInteractiveOptions; ``` Whether you want to allow interactive dismissal. Defaults to using 'pan' gesture for dismissal however you can customize your own. *** ### pageEnd? ```ts optional pageEnd?: SharedTransitionPageWithDurationProperties; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) View settings applied to the incoming page to end your transition with. *** ### pageOut? ```ts optional pageOut?: SharedTransitionPageWithDurationProperties; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) View settings applied to the outgoing page in your transition. *** ### pageReturn? ```ts optional pageReturn?: SharedRect & { cornerRadius?: number; opacity?: number; scale?: { x?: number; y?: number; }; } & { sharedTransitionTags?: { [key: string]: SharedTransitionTagProperties; }; spring?: SharedSpringProperties; } & { duration?: number; } & { useStartOpacity?: boolean; }; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) View settings to return to the original page with. #### Type Declaration ##### cornerRadius? ```ts optional cornerRadius?: number; ``` (iOS only) Page-level corner radius to animate alongside the transition. Useful for sheet-style modals where the top corners are rounded at the starting offscreen position and flatten as the page reaches fullscreen (and vice versa for dismiss). Top-left + top-right corners are masked. ##### opacity? ```ts optional opacity?: number; ``` ##### scale? ```ts optional scale?: { x?: number; y?: number; }; ``` ###### scale.x? ```ts optional x?: number; ``` ###### scale.y? ```ts optional y?: number; ``` #### Type Declaration ##### sharedTransitionTags? ```ts optional sharedTransitionTags?: { [key: string]: SharedTransitionTagProperties; }; ``` (iOS Only) Allow "independent" elements found only on one of the screens to take part in the animation. Note: This feature will be brought to Android in a future release. ###### Index Signature ```ts [key: string]: SharedTransitionTagProperties ``` ##### spring? ```ts optional spring?: SharedSpringProperties; ``` Spring animation settings. Defaults to 140 tension with 10 friction. #### Type Declaration ##### duration? ```ts optional duration?: number; ``` Linear duration in milliseconds Note: When this is defined, it will override spring options and use only linear animation. #### Type Declaration ##### useStartOpacity? ```ts optional useStartOpacity?: boolean; ``` In some cases you may want the returning animation to start with the original opacity, instead of beginning where it ended up on pageEnd. Note: you can try enabling this property in cases where your return animation doesn't appear correct. *** ### pageStart? ```ts optional pageStart?: SharedTransitionPageProperties; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) View settings applied to the incoming page to start your transition with. --- --- url: 'https://docs.nativescript.org/api/interfaces/ShowModalOptions.md' --- Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) ## Properties ### android? ```ts optional android?: { cancelable?: boolean; windowSoftInputMode?: number; }; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) #### ~~cancelable?~~ ```ts optional cancelable?: boolean; ``` ##### Deprecated Use ShowModalOptions.cancelable instead. An optional parameter specifying whether the modal view can be dismissed when not in full-screen mode. #### windowSoftInputMode? ```ts optional windowSoftInputMode?: number; ``` An optional parameter specifying the windowSoftInputMode of the dialog window. For possible values see https://developer.android.com/reference/android/view/WindowManager.LayoutParams#softInputMode *** ### animated? ```ts optional animated?: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) An optional parameter specifying whether to show the modal view with animation. *** ### cancelable? ```ts optional cancelable?: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) An optional parameter specifying whether the modal view can be dismissed when not in full-screen mode. *** ### closeCallback ```ts closeCallback: (...args: any[]) => void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) A function that will be called when the view is closed. Any arguments provided when calling ShownModallyData.closeCallback will be available here. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` *** ### context ```ts context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Any context you want to pass to the modally shown view. This same context will be available in the arguments of the shownModally event handler. *** ### fullscreen? ```ts optional fullscreen?: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) An optional parameter specifying whether to show the modal view in full-screen mode. *** ### ios? ```ts optional ios?: { height?: number; presentationStyle?: any; statusBarStyle?: "dark" | "light"; width?: number; }; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) An optional parameter that specify options specific to iOS as an object. #### height? ```ts optional height?: number; ``` height of the popup dialog #### presentationStyle? ```ts optional presentationStyle?: any; ``` The UIModalPresentationStyle to be used when showing the dialog in iOS . #### statusBarStyle? ```ts optional statusBarStyle?: "dark" | "light"; ``` The preferred status bar style for the modal view #### width? ```ts optional width?: number; ``` width of the popup dialog *** ### stretched? ```ts optional stretched?: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) An optional parameter specifying whether to stretch the modal view when not in full-screen mode. *** ### transition? ```ts optional transition?: ModalTransitionType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) An optional custom transition effect --- --- url: 'https://docs.nativescript.org/api/interfaces/ShownModallyData.md' description: Defines the data for the shownModally event. --- Defined in: [ui/core/view/view-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-interfaces.ts) Defines the data for the shownModally event. ## Extends * [`EventData`](EventData.md) ## Properties ### closeCallback? ```ts optional closeCallback?: Function; ``` Defined in: [ui/core/view/view-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-interfaces.ts) A callback to call when you want to close the modally shown view. Pass in any kind of arguments and you will receive when the callback parameter of View.showModal is executed. *** ### context? ```ts optional context?: any; ``` Defined in: [ui/core/view/view-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-interfaces.ts) The context (optional, may be undefined) passed to the view when shown modally. *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/Size.md' description: >- The Size interface describes abstract dimensions in two dimensional space. It has two properties width and height, representing the width and height values o... --- Defined in: [ui/core/view/view-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-interfaces.ts) 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. ## Properties ### height ```ts height: number; ``` Defined in: [ui/core/view/view-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-interfaces.ts) Represents the height of the size. *** ### width ```ts width: number; ``` Defined in: [ui/core/view/view-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-interfaces.ts) Represents the width of the size. --- --- url: 'https://docs.nativescript.org/api/interfaces/StrokeCSSValues.md' --- Defined in: [ui/styling/css-stroke.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-stroke.ts) ## Properties ### color ```ts color: Color; ``` Defined in: [ui/styling/css-stroke.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-stroke.ts) *** ### width ```ts width: LengthType; ``` Defined in: [ui/styling/css-stroke.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-stroke.ts) --- --- url: 'https://docs.nativescript.org/api/interfaces/SwipeGestureEventData.md' description: Base event data. --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) Base event data. ## Extends * [`GestureEventData`](GestureEventData.md) ## Properties ### android ```ts android: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`android`](GestureEventData.md#android) *** ### direction ```ts direction: SwipeDirection; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`GestureEventData`](GestureEventData.md).[`eventName`](GestureEventData.md#eventname) *** ### ios ```ts ios: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`ios`](GestureEventData.md#ios) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`GestureEventData`](GestureEventData.md).[`object`](GestureEventData.md#object) *** ### type ```ts type: GestureTypes; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`type`](GestureEventData.md#type) *** ### view ```ts view: View; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`view`](GestureEventData.md#view) --- --- url: >- https://docs.nativescript.org/api/interfaces/SystemAppearanceChangedEventData.md description: Event data containing information for system appearance changed event. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information for system appearance changed event. ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Properties ### android? ```ts optional android?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### newValue ```ts newValue: "dark" | "light"; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) New system appearance value. *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/TapGestureEventData.md' description: Base event data. --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) Base event data. ## Extends * [`GestureEventData`](GestureEventData.md) ## Properties ### android ```ts android: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`android`](GestureEventData.md#android) *** ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`GestureEventData`](GestureEventData.md).[`eventName`](GestureEventData.md#eventname) *** ### ios ```ts ios: any; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`ios`](GestureEventData.md#ios) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`GestureEventData`](GestureEventData.md).[`object`](GestureEventData.md#object) *** ### type ```ts type: GestureTypes; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`type`](GestureEventData.md#type) *** ### view ```ts view: View; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Inherited from [`GestureEventData`](GestureEventData.md).[`view`](GestureEventData.md#view) ## Methods ### getPointerCount() ```ts getPointerCount(): number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Returns `number` *** ### getX() ```ts getX(): number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Returns `number` *** ### getY() ```ts getY(): number; ``` Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/gestures-types.ts) #### Returns `number` --- --- url: 'https://docs.nativescript.org/api/interfaces/Template.md' description: >- Defines an interface for a View factory function. Commonly used to specify the visualization of data objects. --- Defined in: [ui/core/view/index.d.ts:1214](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1214) Defines an interface for a View factory function. Commonly used to specify the visualization of data objects. ```ts Template(): View; ``` Defined in: [ui/core/view/index.d.ts:1219](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1219) Call signature of the factory function. Returns a new View instance. ## Returns [`View`](../classes/View.md) --- --- url: 'https://docs.nativescript.org/api/interfaces/TemplatedItemsView.md' --- Defined in: [ui/list-view/index.d.ts:294](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L294) ## Properties ### items ```ts items: any[] | ItemsSource; ``` Defined in: [ui/list-view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L295) *** ### itemTemplate ```ts itemTemplate: string | Template; ``` Defined in: [ui/list-view/index.d.ts:296](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L296) *** ### itemTemplates? ```ts optional itemTemplates?: string | KeyedTemplate[]; ``` Defined in: [ui/list-view/index.d.ts:297](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L297) ## Methods ### off() ```ts off( event: "itemLoading", callback: (args: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/list-view/index.d.ts:300](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L300) #### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"itemLoading"` | | `callback` | (`args`: [`EventData`](EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` *** ### on() ```ts on( event: "itemLoading", callback: (args: ItemEventData) => void, thisArg?: any): void; ``` Defined in: [ui/list-view/index.d.ts:299](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L299) #### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"itemLoading"` | | `callback` | (`args`: [`ItemEventData`](ItemEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` *** ### refresh() ```ts refresh(): void; ``` Defined in: [ui/list-view/index.d.ts:298](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/list-view/index.d.ts#L298) #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/interfaces/TimerInfo.md' description: >- Contains contains utility methods for profiling. All methods in this module are experimental and may be changed in a non-major version. --- Defined in: [profiling/index.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L6) Contains contains utility methods for profiling. All methods in this module are experimental and may be changed in a non-major version. ## Properties ### count ```ts count: number; ``` Defined in: [profiling/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L8) *** ### totalTime ```ts totalTime: number; ``` Defined in: [profiling/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L7) --- --- url: 'https://docs.nativescript.org/api/interfaces/TouchGestureEventData.md' --- Defined in: [ui/gestures/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L65) ## Properties ### action ```ts action: string; ``` Defined in: [ui/gestures/index.d.ts:69](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L69) *** ### android ```ts android: MotionEvent; ``` Defined in: [ui/gestures/index.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L71) *** ### eventName ```ts eventName: string; ``` Defined in: [ui/gestures/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L66) *** ### ios ```ts ios: any; ``` Defined in: [ui/gestures/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L68) *** ### object ```ts object: any; ``` Defined in: [ui/gestures/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L72) *** ### type ```ts type: GestureTypes; ``` Defined in: [ui/gestures/index.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L67) *** ### view ```ts view: View; ``` Defined in: [ui/gestures/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L70) ## Methods ### getActivePointers() ```ts getActivePointers(): Pointer[]; ``` Defined in: [ui/gestures/index.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L78) #### Returns `Pointer`\[] *** ### getAllPointers() ```ts getAllPointers(): Pointer[]; ``` Defined in: [ui/gestures/index.d.ts:80](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L80) #### Returns `Pointer`\[] *** ### getPointerCount() ```ts getPointerCount(): number; ``` Defined in: [ui/gestures/index.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L76) #### Returns `number` *** ### getX() ```ts getX(): number; ``` Defined in: [ui/gestures/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L82) #### Returns `number` *** ### getY() ```ts getY(): number; ``` Defined in: [ui/gestures/index.d.ts:84](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L84) #### Returns `number` *** ### prepare() ```ts prepare(view: View, e: any): void; ``` Defined in: [ui/gestures/index.d.ts:74](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/index.d.ts#L74) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](../classes/View.md) | | `e` | `any` | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/interfaces/TraceErrorHandler.md' description: An interface used to for handling trace error --- Defined in: [trace/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/trace/index.d.ts#L19) An interface used to for handling trace error ## Methods ### handlerError() ```ts handlerError(error: Error): any; ``` Defined in: [trace/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/trace/index.d.ts#L20) #### Parameters | Parameter | Type | | ------ | ------ | | `error` | `Error` | #### Returns `any` --- --- url: 'https://docs.nativescript.org/api/interfaces/TraceEventListener.md' description: An interface used to trace information about specific event. --- Defined in: [trace/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/trace/index.d.ts#L11) An interface used to trace information about specific event. ## Properties ### filter ```ts filter: string; ``` Defined in: [trace/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/trace/index.d.ts#L12) ## Methods ### on() ```ts on( object: Object, name: string, data?: any): void; ``` Defined in: [trace/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/trace/index.d.ts#L13) #### Parameters | Parameter | Type | | ------ | ------ | | `object` | `Object` | | `name` | `string` | | `data?` | `any` | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/interfaces/TraceWriter.md' description: An interface used to define a writer used by trace to print (log). --- Defined in: [trace/index.d.ts:4](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/trace/index.d.ts#L4) An interface used to define a writer used by trace to print (log). ## Methods ### write() ```ts write( message: any, category: string, type?: number): void; ``` Defined in: [trace/index.d.ts:5](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/trace/index.d.ts#L5) #### Parameters | Parameter | Type | | ------ | ------ | | `message` | `any` | | `category` | `string` | | `type?` | `number` | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/interfaces/UnhandledErrorEventData.md' description: Event data containing information about unhandled application errors. --- Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Event data containing information about unhandled application errors. ## Extends * [`ApplicationEventData`](ApplicationEventData.md) ## Properties ### android? ```ts optional android?: NativeScriptError; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native Android event arguments. Valid only when running on Android. #### Overrides [`ApplicationEventData`](ApplicationEventData.md).[`android`](ApplicationEventData.md#android) *** ### error ```ts error: NativeScriptError; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) *** ### eventName ```ts eventName: string; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The name of the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`eventName`](ApplicationEventData.md#eventname) *** ### ios? ```ts optional ios?: NativeScriptError; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) Gets the native iOS event arguments. Valid only when running on iOS. #### Overrides [`ApplicationEventData`](ApplicationEventData.md).[`ios`](ApplicationEventData.md#ios) *** ### object ```ts object: any; ``` Defined in: [application/application-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-interfaces.ts) The instance that has raised the event. #### Inherited from [`ApplicationEventData`](ApplicationEventData.md).[`object`](ApplicationEventData.md#object) --- --- url: 'https://docs.nativescript.org/api/interfaces/ViewEntry.md' description: Represents an entry to be used to create a view or load it form file --- Defined in: [ui/frame/index.d.ts:358](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L358) Represents an entry to be used to create a view or load it form file ## Extended by * [`NavigationEntry`](NavigationEntry.md) ## Properties ### create? ```ts optional create?: () => View; ``` Defined in: [ui/frame/index.d.ts:367](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L367) A function used to create the View instance. Optional. #### Returns [`View`](../classes/View.md) *** ### moduleName? ```ts optional moduleName?: string; ``` Defined in: [ui/frame/index.d.ts:362](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L362) The name of the module containing the View instance to load. Optional. --- --- url: 'https://docs.nativescript.org/api/interfaces/WindowBaseEventData.md' description: Base event data for window surface events. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Base event data for window surface events. ## Extends * [`EventData`](EventData.md) ## Extended by * [`NativeWindowEventData`](NativeWindowEventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### window ```ts window: WindowBase; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The window that emitted the event. --- --- url: 'https://docs.nativescript.org/api/interfaces/WindowCloseEventData.md' description: Event data fired on Application when a window closes. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Event data fired on Application when a window closes. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### window ```ts window: NativeWindow; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The NativeWindow that was closed. --- --- url: 'https://docs.nativescript.org/api/interfaces/WindowContentRequest.md' description: Describes the window asking for content. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Describes the window asking for content. ## Properties ### android? ```ts optional android?: { intent?: Intent; savedInstanceState?: Bundle; }; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) #### intent? ```ts optional intent?: Intent; ``` #### savedInstanceState? ```ts optional savedInstanceState?: Bundle; ``` *** ### data? ```ts optional data?: Record; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) NSUserActivity.userInfo on iOS, intent extras on Android. *** ### ios? ```ts optional ios?: { connectionOptions?: UISceneConnectionOptions; }; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) #### connectionOptions? ```ts optional connectionOptions?: UISceneConnectionOptions; ``` *** ### isPrimary ```ts isPrimary: boolean; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Whether the window is the application's primary window. *** ### window ```ts window: NativeWindow; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The window that needs content. --- --- url: >- https://docs.nativescript.org/api/interfaces/WindowLayoutDirectionChangedEventData.md description: Event data for the `layoutDirectionChanged` event of a NativeWindow. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Event data for the `layoutDirectionChanged` event of a NativeWindow. ## Extends * [`NativeWindowEventData`](NativeWindowEventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`NativeWindowEventData`](NativeWindowEventData.md).[`eventName`](NativeWindowEventData.md#eventname) *** ### newValue ```ts newValue: LayoutDirectionType; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The layout direction the window is now using. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`NativeWindowEventData`](NativeWindowEventData.md).[`object`](NativeWindowEventData.md#object) *** ### window ```ts window: NativeWindow; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The NativeWindow that emitted the event. #### Inherited from [`NativeWindowEventData`](NativeWindowEventData.md).[`window`](NativeWindowEventData.md#window) --- --- url: 'https://docs.nativescript.org/api/interfaces/WindowOpenEventData.md' description: Event data fired on Application when a window opens. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Event data fired on Application when a window opens. ## Extends * [`EventData`](EventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`EventData`](EventData.md).[`eventName`](EventData.md#eventname) *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`EventData`](EventData.md).[`object`](EventData.md#object) *** ### window ```ts window: NativeWindow; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The NativeWindow that was opened. --- --- url: 'https://docs.nativescript.org/api/interfaces/WindowOpenOptions.md' description: Options for opening a new window. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Options for opening a new window. ## Properties ### data? ```ts optional data?: Record; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Data to pass to the new window. On iOS: serialized into NSUserActivity.userInfo. On Android: added as intent extras. --- --- url: >- https://docs.nativescript.org/api/interfaces/WindowOrientationChangedEventData.md description: Event data for the `orientationChanged` event of a NativeWindow. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Event data for the `orientationChanged` event of a NativeWindow. ## Extends * [`NativeWindowEventData`](NativeWindowEventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`NativeWindowEventData`](NativeWindowEventData.md).[`eventName`](NativeWindowEventData.md#eventname) *** ### newValue ```ts newValue: "portrait" | "landscape" | "unknown"; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The orientation the window is now in. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`NativeWindowEventData`](NativeWindowEventData.md).[`object`](NativeWindowEventData.md#object) *** ### window ```ts window: NativeWindow; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The NativeWindow that emitted the event. #### Inherited from [`NativeWindowEventData`](NativeWindowEventData.md).[`window`](NativeWindowEventData.md#window) --- --- url: >- https://docs.nativescript.org/api/interfaces/WindowSystemAppearanceChangedEventData.md description: Event data for the `systemAppearanceChanged` event of a NativeWindow. --- Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Event data for the `systemAppearanceChanged` event of a NativeWindow. ## Extends * [`NativeWindowEventData`](NativeWindowEventData.md) ## Properties ### eventName ```ts eventName: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The name of the event. #### Inherited from [`NativeWindowEventData`](NativeWindowEventData.md).[`eventName`](NativeWindowEventData.md#eventname) *** ### newValue ```ts newValue: "dark" | "light"; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The system appearance the window is now showing. *** ### object ```ts object: Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) The Observable instance that has raised the event. #### Inherited from [`NativeWindowEventData`](NativeWindowEventData.md).[`object`](NativeWindowEventData.md#object) *** ### window ```ts window: NativeWindow; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) The NativeWindow that emitted the event. #### Inherited from [`NativeWindowEventData`](NativeWindowEventData.md).[`window`](NativeWindowEventData.md#window) --- --- url: 'https://docs.nativescript.org/api/type-aliases/AlignContent.md' --- ```ts type AlignContent = | "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "stretch"; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L11) --- --- url: 'https://docs.nativescript.org/api/type-aliases/AlignItems.md' --- ```ts type AlignItems = "flex-start" | "flex-end" | "center" | "baseline" | "stretch"; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L10) --- --- url: 'https://docs.nativescript.org/api/type-aliases/AlignSelf.md' --- ```ts type AlignSelf = "auto" | AlignItems; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:35](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L35) --- --- url: 'https://docs.nativescript.org/api/type-aliases/AnimationPromise.md' --- ```ts type AnimationPromise = Promise & Cancelable; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/dip.md' --- ```ts type dip = number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.dip` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/Flex.md' --- ```ts type Flex = | number | "auto" | "none" | `${FlexGrow} ${FlexShrink}` | CSSWideKeywords; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L13) --- --- url: 'https://docs.nativescript.org/api/type-aliases/FlexDirection.md' --- ```ts type FlexDirection = "row" | "row-reverse" | "column" | "column-reverse"; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L7) --- --- url: 'https://docs.nativescript.org/api/type-aliases/FlexFlow.md' --- ```ts type FlexFlow = `${FlexDirection} ${FlexWrap}`; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L12) --- --- url: 'https://docs.nativescript.org/api/type-aliases/FlexWrap.md' --- ```ts type FlexWrap = "nowrap" | "wrap" | "wrap-reverse"; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L8) --- --- url: 'https://docs.nativescript.org/api/type-aliases/FontStyleType.md' --- ```ts type FontStyleType = | "normal" | "italic" | CSSWideKeywords; ``` Defined in: [ui/styling/font-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/font-interfaces.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/FontVariationSettingsType.md' --- ```ts type FontVariationSettingsType = { axis: string; value: number; }; ``` Defined in: [ui/styling/font-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/font-interfaces.ts) ## Properties ### axis ```ts axis: string; ``` Defined in: [ui/styling/font-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/font-interfaces.ts) *** ### value ```ts value: number; ``` Defined in: [ui/styling/font-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/font-interfaces.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/FontWeightType.md' --- ```ts type FontWeightType = | "100" | "200" | "300" | "normal" | "400" | "500" | "600" | "bold" | "700" | "800" | "900" | number | CSSWideKeywords; ``` Defined in: [ui/styling/font-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/font-interfaces.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/GlassEffectConfig.md' --- ```ts type GlassEffectConfig = { animateChangeDuration?: number; interactive?: boolean; spacing?: number; tint?: string | Color; variant?: GlassEffectVariant; }; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) ## Properties ### animateChangeDuration? ```ts optional animateChangeDuration?: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Duration in milliseconds to animate effect changes (default is 300ms) *** ### interactive? ```ts optional interactive?: boolean; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) *** ### spacing? ```ts optional spacing?: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) (LiquidGlassContainer only) spacing between child elements (default is 8) *** ### tint? ```ts optional tint?: string | Color; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) *** ### variant? ```ts optional variant?: GlassEffectVariant; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/GlassEffectType.md' --- ```ts type GlassEffectType = | GlassEffectVariant | GlassEffectConfig; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/GlassEffectVariant.md' description: Glass effects --- ```ts type GlassEffectVariant = "regular" | "clear" | "identity" | "none"; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/view-common.ts) Glass effects --- --- url: 'https://docs.nativescript.org/api/type-aliases/GridUnitType.md' --- ```ts type GridUnitType = "pixel" | "star" | "auto"; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/grid-layout/index.d.ts#L194) --- --- url: 'https://docs.nativescript.org/api/type-aliases/Headers.md' --- ```ts type Headers = { [key: string]: string | string[]; }; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/http/http-interfaces.ts) ## Index Signature ```ts [key: string]: string | string[] ``` --- --- url: 'https://docs.nativescript.org/api/type-aliases/HorizontalAlignment.md' --- ```ts type HorizontalAlignment = HorizontalAlignmentType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.HorizontalAlignmentType` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/InstrumentationMode.md' description: >- Profiling mode to use. - `counters` Accumulates method call counts and times until dumpProfiles is called and then prints aggregated statistic in the console... --- ```ts type InstrumentationMode = "counters" | "timeline" | "lifecycle"; ``` Defined in: [profiling/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L17) 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. --- --- url: 'https://docs.nativescript.org/api/type-aliases/iosSymbolScaleType.md' description: iOS only SF Symbol scale --- ```ts type iosSymbolScaleType = "default" | "small" | "medium" | "large"; ``` Defined in: [image-source/index.d.ts:278](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/image-source/index.d.ts#L278) iOS only SF Symbol scale --- --- url: 'https://docs.nativescript.org/api/type-aliases/JustifyContent.md' --- ```ts type JustifyContent = "flex-start" | "flex-end" | "center" | "space-between" | "space-around"; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L9) --- --- url: 'https://docs.nativescript.org/api/type-aliases/LengthDipUnit.md' --- ```ts type LengthDipUnit = LengthDipUnit; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.LengthDipUnit` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/LengthPercentUnit.md' --- ```ts type LengthPercentUnit = LengthPercentUnit; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.LengthPercentUnit` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/LengthPxUnit.md' --- ```ts type LengthPxUnit = LengthPxUnit; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.LengthPxUnit` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/LengthType.md' --- ```ts type LengthType = LengthType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.LengthType` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/ModuleListProvider.md' --- ```ts type ModuleListProvider = () => string[]; ``` Defined in: [module-name-resolver/helpers.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/module-name-resolver/helpers.ts) ## Returns `string`\[] --- --- url: 'https://docs.nativescript.org/api/type-aliases/NativeWindowEventName.md' --- ```ts type NativeWindowEventName = typeof NativeWindowEvents[keyof typeof NativeWindowEvents]; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/percent.md' --- ```ts type percent = number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.percent` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/PercentLengthType.md' --- ```ts type PercentLengthType = PercentLengthType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.PercentLengthType` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/px.md' --- ```ts type px = number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.px` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/SceneEventName.md' --- ```ts type SceneEventName = typeof SceneEvents[keyof typeof SceneEvents]; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) --- --- url: >- https://docs.nativescript.org/api/type-aliases/SharedTransitionTagProperties.md description: Properties which can be set on individual Shared Elements --- ```ts type SharedTransitionTagProperties = SharedProperties & { callback?: (view: View, action: SharedTransitionEventAction) => Promise; propertiesToMatch?: SharedTransitionTagPropertiesToMatch; zIndex?: number; }; ``` Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/transition/shared-transition.ts) Properties which can be set on individual Shared Elements ## Type Declaration ### callback? ```ts optional callback?: (view: View, action: SharedTransitionEventAction) => Promise; ``` #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](../classes/View.md) | | `action` | `SharedTransitionEventAction` | #### Returns `Promise`<`void`> ### propertiesToMatch? ```ts optional propertiesToMatch?: SharedTransitionTagPropertiesToMatch; ``` Collection of properties to match and animate on each shared element. Defaults to: 'backgroundColor', 'cornerRadius', 'borderWidth', 'borderColor' Tip: Using an empty array, \[], for view or layer will avoid copying any properties if desired. ### zIndex? ```ts optional zIndex?: number; ``` The visual stacking order where 0 is at the bottom. Shared elements are stacked one on top of the other during each transition. By default they are not ordered in any particular fashion. --- --- url: 'https://docs.nativescript.org/api/type-aliases/SplitBehavior.md' --- ```ts type SplitBehavior = "automatic" | "tile" | "overlay" | "displace"; ``` Defined in: [ui/split-view/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/index.d.ts#L8) --- --- url: 'https://docs.nativescript.org/api/type-aliases/SplitDisplayMode.md' --- ```ts type SplitDisplayMode = | "automatic" | "secondaryOnly" | "oneBesideSecondary" | "oneOverSecondary" | "twoBesideSecondary" | "twoOverSecondary" | "twoDisplaceSecondary"; ``` Defined in: [ui/split-view/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/index.d.ts#L7) --- --- url: 'https://docs.nativescript.org/api/type-aliases/SplitRole.md' --- ```ts type SplitRole = "primary" | "secondary" | "supplementary" | "inspector"; ``` Defined in: [ui/split-view/index.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/index.d.ts#L6) --- --- url: 'https://docs.nativescript.org/api/type-aliases/SplitStyle.md' --- ```ts type SplitStyle = "automatic" | "double" | "triple"; ``` Defined in: [ui/split-view/index.d.ts:4](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/split-view/index.d.ts#L4) --- --- url: 'https://docs.nativescript.org/api/type-aliases/TouchAnimationOptions.md' --- ```ts type TouchAnimationOptions = { down?: | TouchAnimationFn | AnimationDefinition; up?: | TouchAnimationFn | AnimationDefinition; }; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) ## Properties ### down? ```ts optional down?: | TouchAnimationFn | AnimationDefinition; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) *** ### up? ```ts optional up?: | TouchAnimationFn | AnimationDefinition; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/Transformation.md' --- ```ts type Transformation = { property: TransformationType; value: TransformationValue; }; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ## Properties ### property ```ts property: TransformationType; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### value ```ts value: TransformationValue; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/TransformationType.md' --- ```ts type TransformationType = | "rotate" | "rotate3d" | "rotateX" | "rotateY" | "translate" | "translate3d" | "translateX" | "translateY" | "scale" | "scale3d" | "scaleX" | "scaleY"; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/TransformationValue.md' --- ```ts type TransformationValue = | Point3D | Pair | number; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/TransformFunctionsInfo.md' --- ```ts type TransformFunctionsInfo = { rotate: Point3D; scale: Pair; translate: Pair; }; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) ## Properties ### rotate ```ts rotate: Point3D; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### scale ```ts scale: Pair; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) *** ### translate ```ts translate: Pair; ``` Defined in: [ui/animation/animation-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/animation-shared.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/VerticalAlignment.md' --- ```ts type VerticalAlignment = VerticalAlignmentType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.VerticalAlignmentType` instead. --- --- url: 'https://docs.nativescript.org/api/type-aliases/VisionHoverOptions.md' --- ```ts type VisionHoverOptions = { effect: VisionHoverEffect; shape?: VisionHoverShape; shapeCornerRadius?: number; }; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) ## Properties ### effect ```ts effect: VisionHoverEffect; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) *** ### shape? ```ts optional shape?: VisionHoverShape; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) *** ### shapeCornerRadius? ```ts optional shapeCornerRadius?: number; ``` Defined in: [ui/gestures/touch-manager.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/gestures/touch-manager.ts) --- --- url: 'https://docs.nativescript.org/api/type-aliases/WebViewNavigationType.md' description: Represents navigation type --- ```ts type WebViewNavigationType = | "linkClicked" | "formSubmitted" | "backForward" | "reload" | "formResubmitted" | "other" | undefined; ``` Defined in: [ui/web-view/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/web-view/index.d.ts#L17) Represents navigation type --- --- url: 'https://docs.nativescript.org/api/type-aliases/WindowContentResolver.md' description: >- Supplies the UI for a window that needs content. Called once per window that needs it. Return a `View`, a `NavigationEntry` or a module name to set the windo... --- ```ts type WindowContentResolver = (request: WindowContentRequest) => View | NavigationEntry | string | null | undefined; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Supplies the UI for a window that needs content. Called once per window that needs it. Return a `View`, a `NavigationEntry` or a module name to set the window content, `null` to take ownership and set the content asynchronously later, or `undefined` to fall back to the application main entry. ## Parameters | Parameter | Type | | ------ | ------ | | `request` | [`WindowContentRequest`](../interfaces/WindowContentRequest.md) | ## Returns [`View`](../classes/View.md) | `NavigationEntry` | `string` | `null` | `undefined` --- --- url: 'https://docs.nativescript.org/api/type-aliases/WindowRole.md' description: >- The purpose a window surface serves. - `application` – a regular app window (iOS application scene, Android activity). - `embedded` – a window hosted inside ... --- ```ts type WindowRole = "application" | "embedded" | "carplay" | "externalDisplay"; ``` Defined in: [native-window/index.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L18) The purpose a window surface serves. * `application` – a regular app window (iOS application scene, Android activity). * `embedded` – a window hosted inside another app or container. * `carplay` – a CarPlay template scene. * `externalDisplay` – an external/secondary display scene. --- --- url: 'https://docs.nativescript.org/api/type-aliases/WindowState.md' description: >- The lifecycle state of a window surface. - `attached` – connected to a live native surface. - `detached` – the native surface went away but the window may be... --- ```ts type WindowState = "attached" | "detached" | "closed"; ``` Defined in: [native-window/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/index.d.ts#L27) The lifecycle state of a window surface. * `attached` – connected to a live native surface. * `detached` – the native surface went away but the window may be reconnected. * `closed` – permanently torn down. --- --- url: 'https://docs.nativescript.org/api/variables/resetRootView.md' --- ```ts const _resetRootView: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.resetRootView() ``` --- --- url: 'https://docs.nativescript.org/api/variables/addCss.md' --- ```ts const addCss: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.addCss() ``` --- --- url: 'https://docs.nativescript.org/api/variables/android.md' --- ```ts const android: AndroidApplication; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.android ``` --- --- url: >- https://docs.nativescript.org/api/variables/androidDynamicElevationOffsetProperty.md --- ```ts const androidDynamicElevationOffsetProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/androidElevationProperty.md' --- ```ts const androidElevationProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: >- https://docs.nativescript.org/api/variables/androidRegisterBroadcastReceiver.md --- ```ts androidRegisterBroadcastReceiver: any; ``` --- --- url: 'https://docs.nativescript.org/api/variables/AnimationCurve.md' --- ```ts const AnimationCurve: typeof AnimationCurve; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Deprecated Use `CoreTypes.AnimationCurve` instead. --- --- url: 'https://docs.nativescript.org/api/variables/Application.md' --- ```ts const Application: ApplicationCommon; ``` Defined in: [application/application.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L11) --- --- url: 'https://docs.nativescript.org/api/variables/autocapitalizationTypeProperty.md' --- ```ts const autocapitalizationTypeProperty: Property; ``` Defined in: [ui/editable-text-base/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L131) --- --- url: 'https://docs.nativescript.org/api/variables/autocorrectProperty.md' --- ```ts const autocorrectProperty: Property; ``` Defined in: [ui/editable-text-base/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L132) --- --- url: 'https://docs.nativescript.org/api/variables/backgroundColorProperty.md' --- ```ts const backgroundColorProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/backgroundEvent.md' --- ```ts const backgroundEvent: "background" = "background"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.backgroundEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/backgroundImageProperty.md' --- ```ts const backgroundImageProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/backgroundInternalProperty.md' --- ```ts const backgroundInternalProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/backgroundPositionProperty.md' --- ```ts const backgroundPositionProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/backgroundRepeatProperty.md' --- ```ts const backgroundRepeatProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/backgroundSizeProperty.md' --- ```ts const backgroundSizeProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderBottomColorProperty.md' --- ```ts const borderBottomColorProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderBottomLeftRadiusProperty.md' --- ```ts const borderBottomLeftRadiusProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderBottomRightRadiusProperty.md' --- ```ts const borderBottomRightRadiusProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderBottomWidthProperty.md' --- ```ts const borderBottomWidthProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderLeftColorProperty.md' --- ```ts const borderLeftColorProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderLeftWidthProperty.md' --- ```ts const borderLeftWidthProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderRightColorProperty.md' --- ```ts const borderRightColorProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderRightWidthProperty.md' --- ```ts const borderRightWidthProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderTopColorProperty.md' --- ```ts const borderTopColorProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderTopLeftRadiusProperty.md' --- ```ts const borderTopLeftRadiusProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderTopRightRadiusProperty.md' --- ```ts const borderTopRightRadiusProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/borderTopWidthProperty.md' --- ```ts const borderTopWidthProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/clipPathProperty.md' --- ```ts const clipPathProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/colorProperty.md' --- ```ts const colorProperty: InheritedCssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/columnGapProperty.md' --- ```ts const columnGapProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/cornerShapeProperty.md' --- ```ts const cornerShapeProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/CSSHelper.md' --- ```ts const CSSHelper: { AttributeSelector: typeof AttributeSelector; ClassSelector: typeof ClassSelector; createSelector: typeof createSelector; fromAstNode: typeof fromAstNode; InvalidSelector: typeof InvalidSelector; matchSelectorCandidates: typeof matchSelectorCandidates; MediaQuerySelectorScope: typeof MediaQuerySelectorScope; PseudoClassSelector: typeof PseudoClassSelector; RuleSet: typeof RuleSet; Selector: typeof Selector; SelectorCore: typeof SelectorCore; SelectorScope: typeof SelectorScope; SelectorsMatch: typeof SelectorsMatch; SimpleSelector: typeof SimpleSelector; SimpleSelectorSequence: typeof SimpleSelectorSequence; StyleSheetSelectorScope: typeof StyleSheetSelectorScope; TypeSelector: typeof TypeSelector; UniversalSelector: typeof UniversalSelector; }; ``` Defined in: [ui/styling/css-selector.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-selector.ts) ## Type Declaration ### AttributeSelector ```ts AttributeSelector: typeof AttributeSelector; ``` ### ClassSelector ```ts ClassSelector: typeof ClassSelector; ``` ### createSelector ```ts createSelector: typeof createSelector; ``` ### fromAstNode ```ts fromAstNode: typeof fromAstNode; ``` ### InvalidSelector ```ts InvalidSelector: typeof InvalidSelector; ``` ### matchSelectorCandidates ```ts matchSelectorCandidates: typeof matchSelectorCandidates; ``` ### MediaQuerySelectorScope ```ts MediaQuerySelectorScope: typeof MediaQuerySelectorScope; ``` ### PseudoClassSelector ```ts PseudoClassSelector: typeof PseudoClassSelector; ``` ### RuleSet ```ts RuleSet: typeof RuleSet; ``` ### Selector ```ts Selector: typeof Selector; ``` ### SelectorCore ```ts SelectorCore: typeof SelectorCore; ``` ### SelectorScope ```ts SelectorScope: typeof SelectorScope; ``` ### SelectorsMatch ```ts SelectorsMatch: typeof SelectorsMatch; ``` ### SimpleSelector ```ts SimpleSelector: typeof SimpleSelector; ``` ### SimpleSelectorSequence ```ts SimpleSelectorSequence: typeof SimpleSelectorSequence; ``` ### StyleSheetSelectorScope ```ts StyleSheetSelectorScope: typeof StyleSheetSelectorScope; ``` ### TypeSelector ```ts TypeSelector: typeof TypeSelector; ``` ### UniversalSelector ```ts UniversalSelector: typeof UniversalSelector; ``` --- --- url: 'https://docs.nativescript.org/api/variables/Device.md' description: Gets the current device information. --- ```ts const Device: IDevice; ``` Defined in: [platform/device/index.d.ts:63](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/device/index.d.ts#L63) Gets the current device information. --- --- url: 'https://docs.nativescript.org/api/variables/Dialogs.md' description: Singular rollup for convenience of all dialog methods --- ```ts const Dialogs: { action: typeof action; alert: typeof alert; confirm: typeof confirm; login: typeof login; prompt: typeof prompt; }; ``` Defined in: [ui/dialogs/index.d.ts:305](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L305) Singular rollup for convenience of all dialog methods ## Type Declaration ### action ```ts action: typeof action; ``` ### alert ```ts alert: typeof alert; ``` ### confirm ```ts confirm: typeof confirm; ``` ### login ```ts login: typeof login; ``` ### prompt ```ts prompt: typeof prompt; ``` --- --- url: 'https://docs.nativescript.org/api/variables/directionProperty.md' --- ```ts const directionProperty: InheritedCssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/discardedErrorEvent.md' --- ```ts const discardedErrorEvent: "discardedError" = "discardedError"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.discardedErrorEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/displayedEvent.md' --- ```ts const displayedEvent: "displayed" = "displayed"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.displayedEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/editableProperty.md' --- ```ts const editableProperty: Property; ``` Defined in: [ui/editable-text-base/index.d.ts:129](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L129) --- --- url: 'https://docs.nativescript.org/api/variables/Enums.md' --- ```ts const Enums: { Accuracy: typeof Accuracy; AndroidActionBarIconVisibility: typeof AndroidActionBarIconVisibility; AndroidActionItemPosition: typeof AndroidActionItemPosition; AnimationCurve: typeof AnimationCurve; AutocapitalizationType: typeof AutocapitalizationType; BackgroundRepeat: typeof BackgroundRepeat; DeviceOrientation: typeof DeviceOrientation; DeviceType: typeof DeviceType; Dock: typeof Dock; FontAttributes: typeof FontAttributes; FontStyle: typeof FontStyle; FontWeight: typeof FontWeight; HorizontalAlignment: typeof HorizontalAlignment; ImageFormat: typeof ImageFormat; IOSActionItemPosition: typeof IOSActionItemPosition; KeyboardType: typeof KeyboardType; LayoutDirection: typeof LayoutDirection; NavigationBarVisibility: typeof NavigationBarVisibility; Orientation: typeof Orientation; ReturnKeyType: typeof ReturnKeyType; StatusBarStyle: typeof StatusBarStyle; Stretch: typeof ImageStretch; SystemAppearance: typeof SystemAppearance; TextAlignment: typeof TextAlignment; TextDecoration: typeof TextDecoration; TextTransform: typeof TextTransform; UpdateTextTrigger: typeof UpdateTextTrigger; VerticalAlignment: typeof VerticalAlignment; Visibility: typeof Visibility; WhiteSpace: typeof WhiteSpace; }; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/index.ts) ## Type Declaration ### ~~Accuracy~~ ```ts Accuracy: typeof Accuracy; ``` ### ~~AndroidActionBarIconVisibility~~ ```ts AndroidActionBarIconVisibility: typeof AndroidActionBarIconVisibility; ``` ### ~~AndroidActionItemPosition~~ ```ts AndroidActionItemPosition: typeof AndroidActionItemPosition; ``` ### ~~AnimationCurve~~ ```ts AnimationCurve: typeof AnimationCurve; ``` ### ~~AutocapitalizationType~~ ```ts AutocapitalizationType: typeof AutocapitalizationType; ``` ### ~~BackgroundRepeat~~ ```ts BackgroundRepeat: typeof BackgroundRepeat; ``` ### ~~DeviceOrientation~~ ```ts DeviceOrientation: typeof DeviceOrientation; ``` ### ~~DeviceType~~ ```ts DeviceType: typeof DeviceType; ``` ### ~~Dock~~ ```ts Dock: typeof Dock; ``` ### ~~FontAttributes~~ ```ts FontAttributes: typeof FontAttributes; ``` ### ~~FontStyle~~ ```ts FontStyle: typeof FontStyle; ``` ### ~~FontWeight~~ ```ts FontWeight: typeof FontWeight; ``` ### ~~HorizontalAlignment~~ ```ts HorizontalAlignment: typeof HorizontalAlignment; ``` ### ~~ImageFormat~~ ```ts ImageFormat: typeof ImageFormat; ``` ### ~~IOSActionItemPosition~~ ```ts IOSActionItemPosition: typeof IOSActionItemPosition; ``` ### ~~KeyboardType~~ ```ts KeyboardType: typeof KeyboardType; ``` ### ~~LayoutDirection~~ ```ts LayoutDirection: typeof LayoutDirection; ``` ### ~~NavigationBarVisibility~~ ```ts NavigationBarVisibility: typeof NavigationBarVisibility; ``` ### ~~Orientation~~ ```ts Orientation: typeof Orientation; ``` ### ~~ReturnKeyType~~ ```ts ReturnKeyType: typeof ReturnKeyType; ``` ### ~~StatusBarStyle~~ ```ts StatusBarStyle: typeof StatusBarStyle; ``` ### ~~Stretch~~ ```ts Stretch: typeof ImageStretch; ``` ### ~~SystemAppearance~~ ```ts SystemAppearance: typeof SystemAppearance; ``` ### ~~TextAlignment~~ ```ts TextAlignment: typeof TextAlignment; ``` ### ~~TextDecoration~~ ```ts TextDecoration: typeof TextDecoration; ``` ### ~~TextTransform~~ ```ts TextTransform: typeof TextTransform; ``` ### ~~UpdateTextTrigger~~ ```ts UpdateTextTrigger: typeof UpdateTextTrigger; ``` ### ~~VerticalAlignment~~ ```ts VerticalAlignment: typeof VerticalAlignment; ``` ### ~~Visibility~~ ```ts Visibility: typeof Visibility; ``` ### ~~WhiteSpace~~ ```ts WhiteSpace: typeof WhiteSpace; ``` ## Deprecated Use `CoreTypes` instead. Enums will be removed in 9.0 --- --- url: 'https://docs.nativescript.org/api/variables/exitEvent.md' --- ```ts const exitEvent: "exit" = "exit"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.exitEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/fontFamilyProperty.md' --- ```ts const fontFamilyProperty: InheritedCssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/fontInternalProperty.md' --- ```ts const fontInternalProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/fontScaleChangedEvent.md' --- ```ts const fontScaleChangedEvent: "fontScaleChanged" = "fontScaleChanged"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.fontScaleChangedEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/fontScaleInternalProperty.md' --- ```ts const fontScaleInternalProperty: InheritedCssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/fontSizeProperty.md' --- ```ts const fontSizeProperty: InheritedCssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/fontStyleProperty.md' --- ```ts const fontStyleProperty: InheritedCssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/fontVariationSettingsProperty.md' --- ```ts const fontVariationSettingsProperty: InheritedCssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/fontWeightProperty.md' --- ```ts const fontWeightProperty: InheritedCssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/foregroundEvent.md' --- ```ts const foregroundEvent: "foreground" = "foreground"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.foregroundEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/getCssFileName.md' --- ```ts const getCssFileName: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.getCssFileName() ``` --- --- url: 'https://docs.nativescript.org/api/variables/getMainEntry.md' --- ```ts const getMainEntry: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.getMainEntry() ``` --- --- url: 'https://docs.nativescript.org/api/variables/getNativeApplication.md' --- ```ts const getNativeApplication: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.getNativeApplication() ``` --- --- url: 'https://docs.nativescript.org/api/variables/getResources.md' --- ```ts const getResources: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.getResources() ``` --- --- url: 'https://docs.nativescript.org/api/variables/getRootView.md' --- ```ts const getRootView: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.getRootView() ``` --- --- url: 'https://docs.nativescript.org/api/variables/hasLaunched.md' --- ```ts const hasLaunched: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.hasLaunched() ``` --- --- url: 'https://docs.nativescript.org/api/variables/hasListeners.md' --- ```ts const hasListeners: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.hasListeners() ``` --- --- url: 'https://docs.nativescript.org/api/variables/heightProperty.md' --- ```ts const heightProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/hintProperty.md' --- ```ts const hintProperty: Property; ``` Defined in: [ui/editable-text-base/index.d.ts:133](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L133) --- --- url: 'https://docs.nativescript.org/api/variables/horizontalAlignmentProperty.md' --- ```ts const horizontalAlignmentProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/inBackground.md' --- ```ts const inBackground: boolean; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.inBackground ``` --- --- url: 'https://docs.nativescript.org/api/variables/ios.md' --- ```ts const ios: iOSApplication; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.ios ``` --- --- url: 'https://docs.nativescript.org/api/variables/isAndroid.md' description: Gets a value indicating if the app is running on the Android platform. --- ```ts const isAndroid: boolean; ``` Defined in: [platform/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/index.d.ts#L10) Gets a value indicating if the app is running on the Android platform. --- --- url: 'https://docs.nativescript.org/api/variables/isApple.md' description: Gets a value indicating if the app is running on an Apple platform. --- ```ts const isApple: boolean; ``` Defined in: [platform/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/index.d.ts#L20) Gets a value indicating if the app is running on an Apple platform. --- --- url: 'https://docs.nativescript.org/api/variables/isIOS.md' description: Gets a value indicating if the app is running on the iOS platform. --- ```ts const isIOS: boolean; ``` Defined in: [platform/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/index.d.ts#L15) Gets a value indicating if the app is running on the iOS platform. --- --- url: >- https://docs.nativescript.org/api/variables/isUserInteractionEnabledProperty.md --- ```ts const isUserInteractionEnabledProperty: Property; ``` Defined in: [ui/core/view/index.d.ts:1265](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L1265) --- --- url: 'https://docs.nativescript.org/api/variables/isVisionOS.md' description: Gets a value indicating if the app is running on the iOS platform. --- ```ts const isVisionOS: boolean; ``` Defined in: [platform/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/index.d.ts#L25) Gets a value indicating if the app is running on the iOS platform. --- --- url: 'https://docs.nativescript.org/api/variables/keyboardTypeProperty.md' --- ```ts const keyboardTypeProperty: Property; ``` Defined in: [ui/editable-text-base/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L127) --- --- url: 'https://docs.nativescript.org/api/variables/launchEvent.md' --- ```ts const launchEvent: "launch" = "launch"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.launchEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/layoutDirection.md' --- ```ts const layoutDirection: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.layoutDirection() ``` --- --- url: 'https://docs.nativescript.org/api/variables/layoutDirectionChanged.md' --- ```ts const layoutDirectionChanged: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.layoutDirectionChanged() ``` --- --- url: 'https://docs.nativescript.org/api/variables/layoutDirectionChangedEvent.md' --- ```ts const layoutDirectionChangedEvent: "layoutDirectionChanged" = "layoutDirectionChanged"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.layoutDirectionChangedEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/letterSpacingProperty.md' --- ```ts const letterSpacingProperty: InheritedCssProperty; ``` Defined in: [ui/text-base/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L229) --- --- url: 'https://docs.nativescript.org/api/variables/lineHeightProperty.md' --- ```ts const lineHeightProperty: InheritedCssProperty; ``` Defined in: [ui/text-base/index.d.ts:230](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L230) --- --- url: 'https://docs.nativescript.org/api/variables/loadAppCss.md' --- ```ts const loadAppCss: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.loadAppCss() ``` --- --- url: 'https://docs.nativescript.org/api/variables/lowMemoryEvent.md' --- ```ts const lowMemoryEvent: "lowMemory" = "lowMemory"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.lowMemoryEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/marginBottomProperty.md' --- ```ts const marginBottomProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/marginLeftProperty.md' --- ```ts const marginLeftProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/marginRightProperty.md' --- ```ts const marginRightProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/marginTopProperty.md' --- ```ts const marginTopProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/maxHeightProperty.md' --- ```ts const maxHeightProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/maxLengthProperty.md' --- ```ts const maxLengthProperty: Property; ``` Defined in: [ui/editable-text-base/index.d.ts:135](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L135) --- --- url: 'https://docs.nativescript.org/api/variables/maxWidthProperty.md' --- ```ts const maxWidthProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/minHeightProperty.md' --- ```ts const minHeightProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/minWidthProperty.md' --- ```ts const minWidthProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/NativeWindowEvents.md' description: Events emitted by a NativeWindow instance. --- ```ts const NativeWindowEvents: { activate: "activate"; activityBackPressed: "activityBackPressed"; activityCreated: "activityCreated"; activityDestroyed: "activityDestroyed"; activityNewIntent: "activityNewIntent"; activityPaused: "activityPaused"; activityRequestPermissions: "activityRequestPermissions"; activityResult: "activityResult"; activityResumed: "activityResumed"; activityStarted: "activityStarted"; activityStopped: "activityStopped"; attached: "attached"; background: "background"; close: "close"; contentLoaded: "contentLoaded"; deactivate: "deactivate"; detached: "detached"; displayed: "displayed"; foreground: "foreground"; layoutDirectionChanged: "layoutDirectionChanged"; orientationChanged: "orientationChanged"; saveActivityState: "saveActivityState"; sceneContinueUserActivity: "sceneContinueUserActivity"; sceneDidActivate: "sceneDidActivate"; sceneDidDisconnect: "sceneDidDisconnect"; sceneDidEnterBackground: "sceneDidEnterBackground"; sceneOpenURLContexts: "sceneOpenURLContexts"; scenePerformActionForShortcutItem: "scenePerformActionForShortcutItem"; sceneWillConnect: "sceneWillConnect"; sceneWillEnterForeground: "sceneWillEnterForeground"; sceneWillResignActive: "sceneWillResignActive"; systemAppearanceChanged: "systemAppearanceChanged"; }; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Events emitted by a NativeWindow instance. ## Type Declaration ### activate ```ts readonly activate: "activate"; ``` Fired when the window becomes the active/focused window. ### activityBackPressed ```ts readonly activityBackPressed: "activityBackPressed"; ``` Fired when the back button is pressed (Android only). ### activityCreated ```ts readonly activityCreated: "activityCreated"; ``` Fired when the activity is created (Android only). ### activityDestroyed ```ts readonly activityDestroyed: "activityDestroyed"; ``` Fired when the activity is destroyed (Android only). ### activityNewIntent ```ts readonly activityNewIntent: "activityNewIntent"; ``` Fired when the activity receives a new intent (Android only). ### activityPaused ```ts readonly activityPaused: "activityPaused"; ``` Fired when the activity is paused (Android only). ### activityRequestPermissions ```ts readonly activityRequestPermissions: "activityRequestPermissions"; ``` Fired when permission results are received (Android only). ### activityResult ```ts readonly activityResult: "activityResult"; ``` Fired when the activity receives a result (Android only). ### activityResumed ```ts readonly activityResumed: "activityResumed"; ``` Fired when the activity is resumed (Android only). ### activityStarted ```ts readonly activityStarted: "activityStarted"; ``` Fired when the activity is started (Android only). ### activityStopped ```ts readonly activityStopped: "activityStopped"; ``` Fired when the activity is stopped (Android only). ### attached ```ts readonly attached: "attached"; ``` Fired when a native surface is bound to the window, both on first connect and on every re-attach. ### background ```ts readonly background: "background"; ``` Fired when the window enters the background. ### close ```ts readonly close: "close"; ``` Fired when the window session ends for good. Fires at most once per window; every listener on the window is dropped right after it is dispatched. ### contentLoaded ```ts readonly contentLoaded: "contentLoaded"; ``` Fired when the root view content is set or changed. ### deactivate ```ts readonly deactivate: "deactivate"; ``` Fired when the window loses focus. ### detached ```ts readonly detached: "detached"; ``` Fired when the native surface goes away while the window session stays alive (iOS scene disconnect, Android activity recreation). The window stays registered and keeps its listeners, so the same instance is reused when `attached` fires again. ### displayed ```ts readonly displayed: "displayed"; ``` Fired after the window content has been displayed for the first time. ### foreground ```ts readonly foreground: "foreground"; ``` Fired when the window enters the foreground. ### layoutDirectionChanged ```ts readonly layoutDirectionChanged: "layoutDirectionChanged"; ``` Fired when the layout direction of this window changes between ltr and rtl. ### orientationChanged ```ts readonly orientationChanged: "orientationChanged"; ``` Fired when the orientation of this window changes. ### saveActivityState ```ts readonly saveActivityState: "saveActivityState"; ``` Fired when the activity state is being saved (Android only). ### sceneContinueUserActivity ```ts readonly sceneContinueUserActivity: "sceneContinueUserActivity"; ``` Fired when the scene is asked to continue a handoff/universal link activity (iOS only). ### sceneDidActivate ```ts readonly sceneDidActivate: "sceneDidActivate"; ``` Fired when the scene becomes active (iOS only). ### sceneDidDisconnect ```ts readonly sceneDidDisconnect: "sceneDidDisconnect"; ``` Fired when the scene has disconnected (iOS only). ### sceneDidEnterBackground ```ts readonly sceneDidEnterBackground: "sceneDidEnterBackground"; ``` Fired when the scene has entered the background (iOS only). ### sceneOpenURLContexts ```ts readonly sceneOpenURLContexts: "sceneOpenURLContexts"; ``` Fired when the scene is asked to open one or more URLs (iOS only). ### scenePerformActionForShortcutItem ```ts readonly scenePerformActionForShortcutItem: "scenePerformActionForShortcutItem"; ``` Fired when a home screen quick action is directed at the scene (iOS only). ### sceneWillConnect ```ts readonly sceneWillConnect: "sceneWillConnect"; ``` Fired when the scene is about to connect (iOS only). ### sceneWillEnterForeground ```ts readonly sceneWillEnterForeground: "sceneWillEnterForeground"; ``` Fired when the scene is about to enter the foreground (iOS only). ### sceneWillResignActive ```ts readonly sceneWillResignActive: "sceneWillResignActive"; ``` Fired when the scene is about to resign active state (iOS only). ### systemAppearanceChanged ```ts readonly systemAppearanceChanged: "systemAppearanceChanged"; ``` Fired when the system appearance of this window changes between light and dark. --- --- url: 'https://docs.nativescript.org/api/variables/notify.md' --- ```ts const notify: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.notify() ``` --- --- url: 'https://docs.nativescript.org/api/variables/off.md' --- ```ts const off: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.off() ``` --- --- url: 'https://docs.nativescript.org/api/variables/on.md' --- ```ts const on: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.on() ``` --- --- url: 'https://docs.nativescript.org/api/variables/opacityProperty.md' --- ```ts const opacityProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/orientation.md' --- ```ts const orientation: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.orientation() ``` --- --- url: 'https://docs.nativescript.org/api/variables/orientationChangedEvent.md' --- ```ts const orientationChangedEvent: "orientationChanged" = "orientationChanged"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.orientationChangedEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/paddingBottomProperty.md' --- ```ts const paddingBottomProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/paddingInternalProperty.md' --- ```ts const paddingInternalProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/paddingLeftProperty.md' --- ```ts const paddingLeftProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/paddingRightProperty.md' --- ```ts const paddingRightProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/paddingTopProperty.md' --- ```ts const paddingTopProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/perspectiveProperty.md' --- ```ts const perspectiveProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/placeholderColorProperty.md' --- ```ts const placeholderColorProperty: CssProperty; ``` Defined in: [ui/editable-text-base/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L134) --- --- url: 'https://docs.nativescript.org/api/variables/platformNames.md' --- ```ts const platformNames: { android: string; apple: string; ios: string; visionos: string; }; ``` Defined in: [platform/common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/platform/common.ts) ## Type Declaration ### android ```ts android: string; ``` ### apple ```ts apple: string; ``` ### ios ```ts ios: string; ``` ### visionos ```ts visionos: string; ``` --- --- url: 'https://docs.nativescript.org/api/variables/resetRootView-1.md' --- ```ts const resetRootView: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.resetRootView() ``` --- --- url: 'https://docs.nativescript.org/api/variables/resumeEvent.md' --- ```ts const resumeEvent: "resume" = "resume"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.resumeEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/returnKeyTypeProperty.md' --- ```ts const returnKeyTypeProperty: Property; ``` Defined in: [ui/editable-text-base/index.d.ts:128](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L128) --- --- url: 'https://docs.nativescript.org/api/variables/rotateProperty.md' --- ```ts const rotateProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/rotateXProperty.md' --- ```ts const rotateXProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/rotateYProperty.md' --- ```ts const rotateYProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/rowGapProperty.md' --- ```ts const rowGapProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/run.md' --- ```ts const run: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.run() ``` --- --- url: 'https://docs.nativescript.org/api/variables/scaleXProperty.md' --- ```ts const scaleXProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/scaleYProperty.md' --- ```ts const scaleYProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/SceneEvents.md' --- ```ts const SceneEvents: { sceneContentSetup: string; sceneDidActivate: string; sceneDidDisconnect: string; sceneDidEnterBackground: string; sceneWillConnect: string; sceneWillEnterForeground: string; sceneWillResignActive: string; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-common.ts) ## Type Declaration ### ~~sceneContentSetup~~ ```ts sceneContentSetup: string; ``` #### Deprecated Use the Application 'windowOpen' event and NativeWindow.setContent() instead. ### ~~sceneDidActivate~~ ```ts sceneDidActivate: string; ``` #### Deprecated Use `NativeWindowEvents.sceneDidActivate` instead. ### ~~sceneDidDisconnect~~ ```ts sceneDidDisconnect: string; ``` #### Deprecated Use `NativeWindowEvents.sceneDidDisconnect` instead. ### ~~sceneDidEnterBackground~~ ```ts sceneDidEnterBackground: string; ``` #### Deprecated Use `NativeWindowEvents.sceneDidEnterBackground` instead. ### ~~sceneWillConnect~~ ```ts sceneWillConnect: string; ``` #### Deprecated Use `NativeWindowEvents.sceneWillConnect` instead. ### ~~sceneWillEnterForeground~~ ```ts sceneWillEnterForeground: string; ``` #### Deprecated Use `NativeWindowEvents.sceneWillEnterForeground` instead. ### ~~sceneWillResignActive~~ ```ts sceneWillResignActive: string; ``` #### Deprecated Use `NativeWindowEvents.sceneWillResignActive` instead. ## Deprecated Use `NativeWindowEvents` from `@nativescript/core/native-window` instead. --- --- url: 'https://docs.nativescript.org/api/variables/setAutoSystemAppearanceChanged.md' --- ```ts const setAutoSystemAppearanceChanged: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.setAutoSystemAppearanceChanged() ``` --- --- url: 'https://docs.nativescript.org/api/variables/setCssFileName.md' --- ```ts const setCssFileName: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.setCssFileName() ``` --- --- url: 'https://docs.nativescript.org/api/variables/setMaxRefreshRate.md' --- ```ts const setMaxRefreshRate: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.setMaxRefreshRate() ``` --- --- url: 'https://docs.nativescript.org/api/variables/setResources.md' --- ```ts const setResources: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.setResources() ``` --- --- url: 'https://docs.nativescript.org/api/variables/suspended.md' --- ```ts const suspended: boolean; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.suspended ``` --- --- url: 'https://docs.nativescript.org/api/variables/suspendEvent.md' --- ```ts const suspendEvent: "suspend" = "suspend"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.suspendEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/systemAppearance.md' --- ```ts const systemAppearance: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.systemAppearance() ``` --- --- url: 'https://docs.nativescript.org/api/variables/systemAppearanceChanged.md' --- ```ts const systemAppearanceChanged: any; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.systemAppearanceChanged() ``` --- --- url: 'https://docs.nativescript.org/api/variables/systemAppearanceChangedEvent.md' --- ```ts const systemAppearanceChangedEvent: "systemAppearanceChanged" = "systemAppearanceChanged"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.systemAppearanceChangedEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/textAlignmentProperty.md' --- ```ts const textAlignmentProperty: InheritedCssProperty; ``` Defined in: [ui/text-base/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L222) --- --- url: 'https://docs.nativescript.org/api/variables/textDecorationProperty.md' --- ```ts const textDecorationProperty: CssProperty; ``` Defined in: [ui/text-base/index.d.ts:223](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L223) --- --- url: 'https://docs.nativescript.org/api/variables/textOverflowProperty.md' --- ```ts const textOverflowProperty: CssProperty; ``` Defined in: [ui/text-base/index.d.ts:228](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L228) --- --- url: 'https://docs.nativescript.org/api/variables/textShadowProperty.md' --- ```ts const textShadowProperty: InheritedCssProperty; ``` Defined in: [ui/text-base/index.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L225) --- --- url: 'https://docs.nativescript.org/api/variables/textStrokeProperty.md' --- ```ts const textStrokeProperty: InheritedCssProperty; ``` Defined in: [ui/text-base/index.d.ts:226](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L226) --- --- url: 'https://docs.nativescript.org/api/variables/textTransformProperty.md' --- ```ts const textTransformProperty: InheritedCssProperty; ``` Defined in: [ui/text-base/index.d.ts:224](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L224) --- --- url: 'https://docs.nativescript.org/api/variables/translateXProperty.md' --- ```ts const translateXProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/translateYProperty.md' --- ```ts const translateYProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/uncaughtErrorEvent.md' --- ```ts const uncaughtErrorEvent: "uncaughtError" = "uncaughtError"; ``` Defined in: [application/application-shims.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application-shims.ts) ## Deprecated Deep imports into the Application module are deprecated and will be removed in a future release. Use the `Application` class imported from "@nativescript/core" instead: ```ts import { Application } from "@nativescript/core"; Application.uncaughtErrorEvent ``` --- --- url: 'https://docs.nativescript.org/api/variables/unsetValue.md' description: Value specifying that Property should be set to its initial value. --- ```ts const unsetValue: any; ``` Defined in: [ui/core/properties/property-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/properties/property-shared.ts) Value specifying that Property should be set to its initial value. --- --- url: 'https://docs.nativescript.org/api/variables/updateTextTriggerProperty.md' --- ```ts const updateTextTriggerProperty: Property; ``` Defined in: [ui/editable-text-base/index.d.ts:130](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/editable-text-base/index.d.ts#L130) --- --- url: 'https://docs.nativescript.org/api/variables/VALID_FONT_SCALES.md' --- ```ts const VALID_FONT_SCALES: number[]; ``` Defined in: [application/application.d.ts:373](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L373) --- --- url: 'https://docs.nativescript.org/api/variables/verticalAlignmentProperty.md' --- ```ts const verticalAlignmentProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/visibilityProperty.md' --- ```ts const visibilityProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/whiteSpaceProperty.md' --- ```ts const whiteSpaceProperty: InheritedCssProperty; ``` Defined in: [ui/text-base/index.d.ts:227](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L227) --- --- url: 'https://docs.nativescript.org/api/variables/widthProperty.md' --- ```ts const widthProperty: CssAnimationProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/variables/WindowEvents.md' description: Application-level events related to window management. --- ```ts const WindowEvents: { primaryWindowChanged: "primaryWindowChanged"; windowClose: "windowClose"; windowOpen: "windowOpen"; }; ``` Defined in: [native-window/native-window-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/native-window/native-window-interfaces.ts) Application-level events related to window management. ## Type Declaration ### primaryWindowChanged ```ts readonly primaryWindowChanged: "primaryWindowChanged"; ``` Fired on Application when another window takes over the primary role. ### windowClose ```ts readonly windowClose: "windowClose"; ``` Fired on Application when a NativeWindow is closed/destroyed. ### windowOpen ```ts readonly windowOpen: "windowOpen"; ``` Fired on Application when a new NativeWindow is created. --- --- url: 'https://docs.nativescript.org/api/variables/zIndexProperty.md' --- ```ts const zIndexProperty: CssProperty; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) --- --- url: 'https://docs.nativescript.org/api/functions/hasPaddingSetNativeOverrides.md' --- ```ts function _hasPaddingSetNativeOverrides(view: unknown, coreProto: object): boolean; ``` Defined in: [ui/styling/style-properties.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-properties.ts) Whether a subclass overrides any of the per-side \[padding\*Property.setNative] handlers `coreProto` defines. An override owns padding application - the consolidated paddingInternal write must stand down, or it would apply padding around handlers designed to intercept it. ## Parameters | Parameter | Type | | ------ | ------ | | `view` | `unknown` | | `coreProto` | `object` | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/functions/resolveAnimationCurve.md' --- ```ts function _resolveAnimationCurve(curve: any): any; ``` Defined in: [ui/animation/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/animation/index.d.ts#L16) ## Parameters | Parameter | Type | | ------ | ------ | | `curve` | `any` | ## Returns `any` --- --- url: 'https://docs.nativescript.org/api/functions/setResolver.md' --- ```ts function _setResolver(resolver: ModuleNameResolverType): void; ``` Defined in: [module-name-resolver/helpers.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/module-name-resolver/helpers.ts) Used to set a global singular instance of ModuleNameResolver ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `resolver` | `ModuleNameResolverType` | instance | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/action.md' --- ## Call Signature ```ts function action( message: string, cancelButtonText: string, actions: string[]): Promise; ``` Defined in: [ui/dialogs/index.d.ts:129](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L129) The action() method displays a action box that prompts the visitor to choose some action. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `message` | `string` | The text to display in the dialog box. | | `cancelButtonText` | `string` | The text to display in the cancel button. | | `actions` | `string`\[] | List of available actions. | ### Returns `Promise`<`string`> ## Call Signature ```ts function action(options: ActionOptions): Promise; ``` Defined in: [ui/dialogs/index.d.ts:135](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L135) The action() method displays a action box that prompts the visitor to choose some action. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`ActionOptions`](../interfaces/ActionOptions.md) | The options for the dialog box. | ### Returns `Promise`<`string`> --- --- url: 'https://docs.nativescript.org/api/functions/addTaggedAdditionalCSS.md' --- ```ts function addTaggedAdditionalCSS(cssText: string, tag?: string | number): boolean; ``` Defined in: [ui/styling/style-scope.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-scope.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `cssText` | `string` | | `tag?` | `string` | `number` | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/functions/addWeakEventListener.md' --- ```ts function addWeakEventListener( source: Observable, eventName: string, handler: (eventData: EventData) => void, target: any): void; ``` Defined in: [ui/core/weak-event-listener/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/weak-event-listener/index.d.ts#L10) Attaches a WeakEventListener. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `source` | [`Observable`](../classes/Observable.md) | Observable class which emits the event. | | `eventName` | `string` | The event name. | | `handler` | (`eventData`: [`EventData`](../interfaces/EventData.md)) => `void` | The function which should be called when event occurs. | | `target` | `any` | Subscriber (target) of the event listener. It will be used as a thisArg in the handler function. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/alert.md' --- ## Call Signature ```ts function alert(message: string | number | boolean): Promise; ``` Defined in: [ui/dialogs/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L66) The alert() method displays an alert box with a specified message. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `message` | `string` | `number` | `boolean` | Specifies the text to display in the alert box. | ### Returns `Promise`<`void`> ## Call Signature ```ts function alert(options: AlertOptions): Promise; ``` Defined in: [ui/dialogs/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L72) The alert() method displays an alert box with a specified message. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`AlertOptions`](../interfaces/AlertOptions.md) | Specifies the options for the alert box. | ### Returns `Promise`<`void`> --- --- url: >- https://docs.nativescript.org/api/functions/animationTimingFunctionConverter.md --- ```ts function animationTimingFunctionConverter(value: string): any; ``` Defined in: [ui/styling/converters.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/converters.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `any` --- --- url: 'https://docs.nativescript.org/api/functions/booleanConverter.md' --- ```ts function booleanConverter(v: string | boolean): boolean; ``` Defined in: [ui/core/view-base/utils.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/utils.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | `boolean` | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/functions/confirm.md' --- ## Call Signature ```ts function confirm(message: string): Promise; ``` Defined in: [ui/dialogs/index.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L78) The confirm() method displays a dialog box with a specified message. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `message` | `string` | Specifies the text to display in the confirm box. | ### Returns `Promise`<`boolean`> ## Call Signature ```ts function confirm(options: ConfirmOptions): Promise; ``` Defined in: [ui/dialogs/index.d.ts:84](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L84) The confirm() method displays a dialog box with a specified message. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`ConfirmOptions`](../interfaces/ConfirmOptions.md) | Specifies the options for the confirm box. | ### Returns `Promise`<`boolean`> --- --- url: 'https://docs.nativescript.org/api/functions/CSSType.md' --- ```ts function CSSType(type: string): ClassDecorator; ``` Defined in: [ui/core/view/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L38) Specifies the type name for the instances of this View class, that is used when matching CSS type selectors. Usage: ``` @CSSType("Button") class Button extends View { } ``` Internally the decorator set `Button.prototype.cssType = "Button"`. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `type` | `string` | The type name, e. g. "Button", "Label", etc. | ## Returns `ClassDecorator` --- --- url: 'https://docs.nativescript.org/api/functions/eachDescendant.md' --- ```ts function eachDescendant(view: ViewBase, callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Iterates through all child views (via visual tree) and executes a function. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](../classes/ViewBase.md) | Starting view (parent container). | | `callback` | (`child`: [`ViewBase`](../classes/ViewBase.md)) => `boolean` | A function to execute on every child. If function returns false it breaks the iteration. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/fromObject.md' --- ```ts function fromObject(source: any): Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) 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. ## Parameters | Parameter | Type | | ------ | ------ | | `source` | `any` | ## Returns [`Observable`](../classes/Observable.md) --- --- url: 'https://docs.nativescript.org/api/functions/fromObjectRecursive.md' --- ```ts function fromObjectRecursive(source: any): Observable; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/data/observable/index.ts) 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. ## Parameters | Parameter | Type | | ------ | ------ | | `source` | `any` | ## Returns [`Observable`](../classes/Observable.md) --- --- url: 'https://docs.nativescript.org/api/functions/getAncestor.md' --- ```ts function getAncestor(view: T, criterion: string | (() => any)): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets an ancestor from a given type. ## Type Parameters | Type Parameter | Default type | | ------ | ------ | | `T` *extends* [`ViewBase`](../classes/ViewBase.md) | [`ViewBase`](../classes/ViewBase.md) | ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | `T` | Starting view (child view). | | `criterion` | `string` | (() => `any`) | The type of ancestor view we are looking for. Could be a string containing a class name or an actual type. Returns an instance of a view (if found), otherwise undefined. | ## Returns `T` --- --- url: 'https://docs.nativescript.org/api/functions/getAndroidAccessibilityManager.md' --- ```ts function getAndroidAccessibilityManager(): any; ``` Defined in: [application/application.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L375) ## Returns `any` --- --- url: 'https://docs.nativescript.org/api/functions/getCurrentFontScale.md' --- ```ts function getCurrentFontScale(): number; ``` Defined in: [application/application.d.ts:374](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L374) ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/functions/getCurrentPage.md' --- ```ts function getCurrentPage(): Page; ``` Defined in: [ui/dialogs/dialogs-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/dialogs-common.ts) ## Returns [`Page`](../classes/Page.md) --- --- url: 'https://docs.nativescript.org/api/functions/getFileAccess.md' --- ```ts function getFileAccess(): FileSystemAccess; ``` Defined in: [file-system/index.d.ts:22](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/file-system/index.d.ts#L22) 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. ## Returns `FileSystemAccess` FileSystemAccess --- --- url: 'https://docs.nativescript.org/api/functions/getLastFocusedViewOnPage.md' --- ```ts function getLastFocusedViewOnPage(page: Page): View; ``` Defined in: [application/application.d.ts:395](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L395) Find the last view focused on a page. ## Parameters | Parameter | Type | | ------ | ------ | | `page` | [`Page`](../classes/Page.md) | ## Returns [`View`](../classes/View.md) --- --- url: 'https://docs.nativescript.org/api/functions/getNativeApp.md' --- ```ts function getNativeApp(): T; ``` Defined in: [application/helpers-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/helpers-common.ts) Get the current application instance. ## Type Parameters | Type Parameter | | ------ | | `T` *extends* `any` | ## Returns `T` current application instance, UIApplication on iOS or android.app.Application on Android. --- --- url: 'https://docs.nativescript.org/api/functions/getRootLayout.md' --- ```ts function getRootLayout(): RootLayout; ``` Defined in: [ui/layouts/root-layout/index.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L18) ## Returns [`RootLayout`](../classes/RootLayout.md) --- --- url: 'https://docs.nativescript.org/api/functions/getRootLayoutById.md' --- ```ts function getRootLayoutById(id: string): RootLayout; ``` Defined in: [ui/layouts/root-layout/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/layouts/root-layout/index.d.ts#L19) ## Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | ## Returns [`RootLayout`](../classes/RootLayout.md) --- --- url: 'https://docs.nativescript.org/api/functions/getTransformedText.md' --- ```ts function getTransformedText(text: string, textTransform: TextTransformType): string; ``` Defined in: [ui/text-base/index.d.ts:233](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/text-base/index.d.ts#L233) ## Parameters | Parameter | Type | | ------ | ------ | | `text` | `string` | | `textTransform` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/functions/getViewById.md' --- ```ts function getViewById(view: ViewBase, id: string): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets a child view by id. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](../classes/ViewBase.md) | The parent (container) view of the view to look for. | | `id` | `string` | The id of the view to look for. Returns an instance of a view (if found), otherwise undefined. | ## Returns [`ViewBase`](../classes/ViewBase.md) --- --- url: 'https://docs.nativescript.org/api/functions/isAccessibilityServiceEnabled.md' --- ```ts function isAccessibilityServiceEnabled(): boolean; ``` Defined in: [application/application.d.ts:390](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L390) Is Android TalkBack or iOS VoiceOver enabled? ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/functions/isEmbedded.md' --- ```ts function isEmbedded(): boolean; ``` Defined in: [ui/embedding/index.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/embedding/index.d.ts#L6) Whether the app is embedded into a host project or standalone project ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/functions/login.md' --- ## Call Signature ```ts function login( message: string, userNameHint?: string, passwordHint?: string, userName?: string, password?: string): Promise; ``` Defined in: [ui/dialogs/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L107) The login() method displays a login dialog box that prompts the visitor for user name and password. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `message` | `string` | The text to display in the dialog box. | | `userNameHint?` | `string` | The default text to display as a hint in the username input. Optional. | | `passwordHint?` | `string` | The default text to display as a hint in the password input. Optional. | | `userName?` | `string` | The default text to display in the user name input box. Optional. | | `password?` | `string` | The default text to display in the password input box. Optional. | ### Returns `Promise`<[`LoginResult`](../interfaces/LoginResult.md)> ## Call Signature ```ts function login( message: string, userNameHint?: string, passwordHint?: string): Promise; ``` Defined in: [ui/dialogs/index.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L115) The login() method displays a login dialog box that prompts the visitor for user name and password. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `message` | `string` | The text to display in the dialog box. | | `userNameHint?` | `string` | The default text to display as a hint in the username input. Optional. | | `passwordHint?` | `string` | The default text to display as a hint in the password input. Optional. | ### Returns `Promise`<[`LoginResult`](../interfaces/LoginResult.md)> ## Call Signature ```ts function login(options: LoginOptions): Promise; ``` Defined in: [ui/dialogs/index.d.ts:121](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L121) The login() method displays a login dialog box that prompts the visitor for user name and password. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`LoginOptions`](../interfaces/LoginOptions.md) | The options for the dialog box. | ### Returns `Promise`<[`LoginResult`](../interfaces/LoginResult.md)> --- --- url: 'https://docs.nativescript.org/api/functions/makeParser.md' --- ```ts function makeParser(isValid: (value: any) => boolean, allowNumbers?: boolean): (value: any) => T; ``` Defined in: [core-types/validators.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/validators.ts) ## Type Parameters | Type Parameter | | ------ | | `T` | ## Parameters | Parameter | Type | | ------ | ------ | | `isValid` | (`value`: `any`) => `boolean` | | `allowNumbers?` | `boolean` | ## Returns (`value`: `any`) => `T` --- --- url: 'https://docs.nativescript.org/api/functions/makeValidator.md' --- ```ts function makeValidator(...values: T[]): (value: any) => value is T; ``` Defined in: [core-types/validators.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/core-types/validators.ts) ## Type Parameters | Type Parameter | | ------ | | `T` | ## Parameters | Parameter | Type | | ------ | ------ | | ...`values` | `T`\[] | ## Returns (`value`: `any`) => `value is T` --- --- url: 'https://docs.nativescript.org/api/functions/parseCSSShadow.md' --- ```ts function parseCSSShadow(value: string): ShadowCSSValues; ``` Defined in: [ui/styling/css-shadow.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-shadow.ts) Parse a string into ShadowCSSValues Supports any valid css box/text shadow combination. inspired by https://github.com/jxnblk/css-box-shadow/blob/master/index.js (MIT License) ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `string` | - | ## Returns [`ShadowCSSValues`](../interfaces/ShadowCSSValues.md) --- --- url: 'https://docs.nativescript.org/api/functions/parseCSSStroke.md' --- ```ts function parseCSSStroke(value: string): StrokeCSSValues; ``` Defined in: [ui/styling/css-stroke.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-stroke.ts) Parse a string into StrokeCSSValues https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `string` | - | ## Returns [`StrokeCSSValues`](../interfaces/StrokeCSSValues.md) --- --- url: 'https://docs.nativescript.org/api/functions/parseKeyframeDeclarations.md' --- ```ts function parseKeyframeDeclarations(unparsedKeyframeDeclarations: KeyframeDeclaration[]): KeyframeDeclaration[]; ``` Defined in: [ui/styling/css-animation-parser.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/css-animation-parser.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `unparsedKeyframeDeclarations` | [`KeyframeDeclaration`](../classes/KeyframeDeclaration.md)\[] | ## Returns [`KeyframeDeclaration`](../classes/KeyframeDeclaration.md)\[] --- --- url: 'https://docs.nativescript.org/api/functions/profile.md' --- ## Call Signature ```ts function profile(name?: string): MethodDecorator; ``` Defined in: [profiling/index.d.ts:98](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L98) 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. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name?` | `string` | Name of the timer which will be used for method calls. If not provided - the name of the method will be used. | ### Returns `MethodDecorator` ## Call Signature ```ts function profile(fn: F): F; ``` Defined in: [profiling/index.d.ts:105](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L105) Function factory. It will intercept the function call and start and pause a timer before and after the function call. Works only if profiling is enabled. Works only if profiling is enabled. ### Type Parameters | Type Parameter | | ------ | | `F` *extends* `Function` | ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `fn` | `F` | The function to wrap. Uses the function name to track the times. | ### Returns `F` ## Call Signature ```ts function profile(name: string, fn: F): F; ``` Defined in: [profiling/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L112) Function factory. It will intercept the function call and start and pause a timer before and after the function call. Works only if profiling is enabled. ### Type Parameters | Type Parameter | | ------ | | `F` *extends* `Function` | ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | The name used to track calls and times. | | `fn` | `F` | The function to wrap. | ### Returns `F` ## Call Signature ```ts function profile( target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor): void | TypedPropertyDescriptor; ``` Defined in: [profiling/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L117) Method decorator. It will intercept the method calls and start and pause a timer before and after the method call. Works only if profiling is enabled. ### Type Parameters | Type Parameter | | ------ | | `T` | ### Parameters | Parameter | Type | | ------ | ------ | | `target` | `Object` | | `propertyKey` | `string` | `symbol` | | `descriptor` | `TypedPropertyDescriptor`<`T`> | ### Returns `void` | `TypedPropertyDescriptor`<`T`> ## Call Signature ```ts function profile(): any; ``` Defined in: [profiling/index.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L118) 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. ### Returns `any` --- --- url: 'https://docs.nativescript.org/api/functions/profilingDisable.md' --- ```ts function profilingDisable(): void; ``` Defined in: [profiling/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L58) Disables profiling. ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/profilingDumpProfiles.md' --- ```ts function profilingDumpProfiles(): void; ``` Defined in: [profiling/index.d.ts:123](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L123) Prints the timer for all methods instrumented with profile decorator. ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/profilingEnable.md' --- ```ts function profilingEnable(type?: InstrumentationMode): void; ``` Defined in: [profiling/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L53) Enables profiling. Upon loading of the module it will cache the package.json of the app and check if there is a "profiling" key set, its value can be one of the options available for InstrumentationMode, and if set, enable() will be called in pre app start with the value in the package.json. An example for an `app/package.json` enabling the manual instrumentation profiling is: ``` { "main": "main.js", "profiling": "timeline" } ``` ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `type?` | [`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. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/profilingIsRunning.md' --- ```ts function profilingIsRunning(name: string): boolean; ``` Defined in: [profiling/index.d.ts:91](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L91) Returns true if a timer is currently running. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the timer. | ## Returns `boolean` true is the timer is currently running. --- --- url: 'https://docs.nativescript.org/api/functions/profilingResetProfiles.md' --- ```ts function profilingResetProfiles(): void; ``` Defined in: [profiling/index.d.ts:128](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L128) Resets the timers for all methods instrumented with profile decorator. ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/profilingStart.md' --- ```ts function profilingStart(name: string): void; ``` Defined in: [profiling/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L70) Starts a timer with a specific name. Works only if profiling is enabled. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the timer. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/profilingStartCPU.md' --- ```ts function profilingStartCPU(name: string): void; ``` Defined in: [profiling/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L134) Starts android cpu profiling. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the cpu profiling session. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/profilingStop.md' --- ```ts function profilingStop(name: string): TimerInfo; ``` Defined in: [profiling/index.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L78) Pauses a timer with a specific name. This will increase call count and accumulate time. Works only if profiling is enabled. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the timer. | ## Returns [`TimerInfo`](../interfaces/TimerInfo.md) TimerInfo for the paused timer. --- --- url: 'https://docs.nativescript.org/api/functions/profilingStopCPU.md' --- ```ts function profilingStopCPU(name: string): void; ``` Defined in: [profiling/index.d.ts:140](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L140) Stops android cpu profiling. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the cpu profiling session. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/profilingTime.md' --- ```ts function profilingTime(): number; ``` Defined in: [profiling/index.d.ts:63](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L63) Gets accurate system timestamp in ms. ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/functions/profilingUptime.md' --- ```ts function profilingUptime(): number; ``` Defined in: [profiling/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/profiling/index.d.ts#L145) Gets the uptime of the current process in milliseconds. ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/functions/prompt.md' --- ## Call Signature ```ts function prompt(message: string, defaultText?: string): Promise; ``` Defined in: [ui/dialogs/index.d.ts:91](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L91) The prompt() method displays a dialog box that prompts the visitor for input. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `message` | `string` | The text to display in the dialog box. | | `defaultText?` | `string` | The default text to display in the input box. Optional. | ### Returns `Promise`<[`PromptResult`](../interfaces/PromptResult.md)> ## Call Signature ```ts function prompt(options: PromptOptions): Promise; ``` Defined in: [ui/dialogs/index.d.ts:97](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/dialogs/index.d.ts#L97) The prompt() method displays a dialog box that prompts the visitor for input. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`PromptOptions`](../interfaces/PromptOptions.md) | The options for the dialog box. | ### Returns `Promise`<[`PromptResult`](../interfaces/PromptResult.md)> --- --- url: 'https://docs.nativescript.org/api/functions/PseudoClassHandler.md' --- ```ts function PseudoClassHandler(...pseudoClasses: string[]): MethodDecorator; ``` Defined in: [ui/core/view/index.d.ts:22](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view/index.d.ts#L22) ## Parameters | Parameter | Type | | ------ | ------ | | ...`pseudoClasses` | `string`\[] | ## Returns `MethodDecorator` --- --- url: 'https://docs.nativescript.org/api/functions/querySelectorAll.md' --- ```ts function querySelectorAll(view: ViewBase, selector: string): ViewBase[]; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/view-base/index.ts) Gets a child view by selector. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](../classes/ViewBase.md) | The parent (container) view of the view to look for. | | `selector` | `string` | The selector of the view to look for. Returns an instance of a view (if found), otherwise undefined. | ## Returns [`ViewBase`](../classes/ViewBase.md)\[] --- --- url: 'https://docs.nativescript.org/api/functions/removeTaggedAdditionalCSS.md' --- ```ts function removeTaggedAdditionalCSS(tag: string | number): boolean; ``` Defined in: [ui/styling/style-scope.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-scope.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `tag` | `string` | `number` | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/functions/removeWeakEventListener.md' --- ```ts function removeWeakEventListener( source: Observable, eventName: string, handler: (eventData: EventData) => void, target: any): void; ``` Defined in: [ui/core/weak-event-listener/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/core/weak-event-listener/index.d.ts#L19) Removes a WeakEventListener. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `source` | [`Observable`](../classes/Observable.md) | Observable class which emits the event. | | `eventName` | `string` | The event name. | | `handler` | (`eventData`: [`EventData`](../interfaces/EventData.md)) => `void` | The function which should be called when event occurs. | | `target` | `any` | Subscriber (target) of the event listener. It will be used as a thisArg in the handler function. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/resolveFileNameFromUrl.md' --- ```ts function resolveFileNameFromUrl( url: string, appDirectory: string, fileExists: (name: string) => boolean, importSource?: string): string; ``` Defined in: [ui/styling/style-scope.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/style-scope.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `url` | `string` | | `appDirectory` | `string` | | `fileExists` | (`name`: `string`) => `boolean` | | `importSource?` | `string` | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/functions/sendAccessibilityEvent.md' --- ```ts function sendAccessibilityEvent( View: View, eventName: AndroidAccessibilityEvent, text?: string): void; ``` Defined in: [application/application.d.ts:385](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L385) Android: helper function for triggering accessibility events ## Parameters | Parameter | Type | | ------ | ------ | | `View` | [`View`](../classes/View.md) | | `eventName` | `AndroidAccessibilityEvent` | | `text?` | `string` | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/setActivityCallbacks.md' --- ```ts function setActivityCallbacks(activity: any): void; ``` Defined in: [ui/frame/index.d.ts:549](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/frame/index.d.ts#L549) ## Parameters | Parameter | Type | | ------ | ------ | | `activity` | `any` | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/setNativeApp.md' --- ```ts function setNativeApp(app: any): void; ``` Defined in: [application/helpers-common.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/helpers-common.ts) 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. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `app` | `any` | The native application instance to set. This should be called once during application startup to set the native app instance. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/functions/timeConverter.md' --- ```ts function timeConverter(value: string): number; ``` Defined in: [ui/styling/converters.ts](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/ui/styling/converters.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/functions/updateAccessibilityProperties.md' --- ```ts function updateAccessibilityProperties(view: View): void; ``` Defined in: [application/application.d.ts:380](https://github.com/NativeScript/NativeScript/blob/9.1.0-core/packages/core/application/application.d.ts#L380) Update accessibility properties on nativeView ## Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](../classes/View.md) | ## Returns `void` --- --- url: 'https://docs.nativescript.org/ui.md' description: >- NativeScript ships with commonly used UI components, these are the foundational building blocks. Additional UI components can be created or installed via plugins. --- ## Layout Containers {#layout-containers} ## Navigation Components {#navigation-components} ## Dialogs {#dialogs} ## Components {#components} --- --- url: 'https://docs.nativescript.org/ui/stack-layout.md' description: >- A layout container that arranges child views in a horizontal or vertical stack. --- When you add child views to a StackLayout, they will be arranged one after the other in the specified direction, either horizontally or vertically. By default, the orientation of a StackLayout is vertical, but you can change it to `horizontal` by setting the `orientation` property. ::: danger Important StackLayout is a basic layout container often used excessively in complex layouts. Overusing it with many nested containers or numerous child views can result in poor performance and slow rendering. If you're extensively nesting ``, consider switching to [``](/ui/grid-layout) or [``](/ui/flexbox-layout) for better performance. ::: ## Examples ### Vertical StackLayout By default, `` stacks its child items vertically. The following example creates a vertical StackLayout of 3 equally-sized elements. Items are stretched to cover the entire width of the screen. Items are placed in the order they were declared in. ```xml ``` ### Aligning children horizontally in a veritcal StackLayout Child elements of a vertical StackLayout can align themselves horizontally at `left`, `center` or `right` positions with the `horizontalAlignment` property. For example, we can align child elements diagonally in a vertical StackLayout. ```xml ``` ### Horizontal StackLayout Setting `orientation="horizontal"` on the `StackLayout` will stack items horizontally. The following example creates a horizontal StackLayout of 3 equally-sized elements. Items are stretched to cover the entire height of the screen. ```xml ``` ### Aligning children vertically in a horizontal StackLayout Child elements of a horizontal StackLayout can align themselves veritcally at `top`, `center` or `bottom` positions with the `verticalAlignment` property. The following example creates a diagonal stack of items with responsive sizes. ```xml ``` ## Props ### orientation ```ts orientation: string = 'vertical' | 'horizontal' ``` Specifies the direction of child elements in the StackLayout. Valid values: `vertical` and `horizontal`. Default value: `vertical`. ### ...Inherited Additional inherited properties not shown. Refer to the [API Reference](/api/class/StackLayout) --- --- url: 'https://docs.nativescript.org/ui/grid-layout.md' description: >- A layout container that lets you arrange its child elements in a table-like manner. --- The grid consists of rows, columns, and cells. A cell can span one or more rows and one or more columns. It can contain multiple child elements which can span over multiple rows and columns, and even overlap each other. By default, `` has one column and one row. You can add columns and rows by configuring the `columns` and the `rows` properties. In these properties, you need to set the number of columns and rows and their width and height. You set the number of columns by listing their widths, separated by a comma. You set the number of rows by listing their heights, separated by a comma. You can set a fixed size for column width and row height or you can create them in a responsive manner: * **An absolute number:** Indicates a fixed size. * **auto:** Makes the column as wide as its widest child or makes the row as tall as its tallest child. * **\*:** Takes as much space as available after filling all auto and fixed size columns or rows. ## Examples ### GridLayout with fixed sizing The following example creates a simple 2-by-2 grid with fixed column widths and row heights. ```xml ``` ### GridLayout with star sizing The following example creates a grid with responsive design, where space is allotted proportionally to child elements. ```xml ``` ### GridLayout with fixed and auto sizing The following example create a grid with one auto-sized column and one column with fixed size. Rows have a fixed height. ```xml ``` ### GridLayout with mixed sizing and merged cells The following example creates a complex grid with responsive design, mixed width and height settings, and some merged cells. ```xml ``` ## Props ### columns {#grid-columns} ```ts columns: string // eg. *, 50, auto ``` A string value representing column widths delimited with commas. Valid values: an absolute number, `auto`, or `*`: * A number indicates an absolute column width. * `auto` makes the column as wide as its widest child. * `*` makes the column occupy all available horizontal space. The space is proportionally divided over all star-sized columns. You can set values such as `3*` and `5*` to indicate a ratio of 3:5 in sizes. ### rows {#grid-rows} ```ts rows: string // eg. *, 50, auto ``` A string value representing row heights delimited with commas. Valid values: an absolute number, `auto`, or `*`: * A number indicates an absolute row height. * `auto` makes the row as tall as its tallest child. * `*` makes the row occupy all available vertical space. The space is proportionally divided over all star-sized rows. You can set values such as `3*` and `5*` to indicate a ratio of 3:5 in sizes. ### ...Inherited Additional inherited properties not shown. Refer to the [API Reference](/api/class/GridLayout). ## Children props When an element is a direct child of ``, these properties are accounted for: ### row ```ts row: number ``` The row for the element. The rows are 0-indexed, so the first row is indicated by `0`. ### col ```ts col: number ``` The column for the element. The columns are 0-indexed, so the first column is indicated by `0`. ### rowSpan ```ts rowSpan: number ``` The number of rows for the element to span across. ### colSpan ```ts colSpan: number ``` The number of columns for the element to span across. --- --- url: 'https://docs.nativescript.org/ui/root-layout.md' description: Layout container for dynamically layering views with a programmatic API. --- `` is a layout container designed to be used as the primary RootLayout container for your app with a built-in API to easily control dynamic view layers. It extends a [GridLayout](/ui/grid-layout) so has all the features of a GridLayout, enhanced with additional APIs. ## Examples ### Using RootLayout to open dynamic popups ```xml ``` ```ts import { createPopupView } from './helper' // create a dynamic popup const view = createPopupView('#65adf1', 110, -30) ``` ::: code-group ```ts [Opening] // open the dynamic popup getRootLayout() .open(view, { shadeCover: { color: '#000', opacity: 0.7, tapToClose: true, }, animation: { enterFrom: { opacity: 0, translateY: 500, duration: 500, }, exitTo: { opacity: 0, duration: 300, }, }, }) .catch((ex) => console.error(ex)) ``` ```ts [Closing] // close the dynamic popup getRootLayout() .close(view, { opacity: 0, translate: { x: 0, y: -500 }, }) .catch((ex) => console.error(ex)) ``` ```ts [helper.ts] // helper to create a popup view export function createPopupView( color: string, size: number, offset: number, ): View { const layout = new StackLayout() layout.height = size layout.width = size layout.marginTop = offset layout.marginLeft = offset layout.backgroundColor = color layout.borderRadius = 10 return layout } ``` ::: ## API ### getRootLayout() ```ts import { getRootLayout } from '@nativescript/core' const rootLayout: RootLayout = getRootLayout() ``` Returns the reference to the `RootLayout`, or `undefined` if there's no ``. ::: danger RootLayout is designed to be used as a single instance Technically you can place multiple RootLayouts in your templates, but only the last created instance will be accessible via the `getRootLayout` method. The API has been designed to control a single instance, usually placed as the root view of your Application. ::: ## Methods ### open() ```ts open(view: View, options?: RootLayoutOptions): Promise ``` Opens the `view` and brings it to the front by default. See [View](/api/class/View), [RootLayoutOptions](#rootLayoutOptions). ### bringToFront() ```ts bringToFront(view: View, animated?: boolean): Promise ``` Brings the `view` to the front if it's not already. If the view is not currently shown inside the RootLayout, the call is ignored. See [View](/api/class/View). ### close() ```ts close(view: View, exitTo?: TransitionAnimation): Promise ``` See [View](/api/class/View), [TransitionAnimation](#transitionAnimation). ### closeAll() ```ts closeAll(): Promise ``` Closes all views. ### getShadeCover() ```ts getShadeCover(): View ``` Returns the shade cover (overlay view). ## RootLayoutOptions {#rootLayoutOptions} ### shadeCover ```ts shadeCover: ShadeCoverOptions ``` See [ShadeCoverOptions](#shadeCoverOptions). ### animation ```ts animation: { enterFrom?: TransitionAnimation, exitTo?: TransitionAnimation } ``` `enterFrom` is only applied if it's the first one to be opened. `exitFrom` is only applied if it's the last one to be closed See [TransitionAnimation](#transitionAnimation). ## ShadeCoverOptions {#shadeCoverOptions} ### opacity ```ts opacity: number ``` ### color ```ts color: Color ``` Sets the color of the shade cover. See [Color](/api/class/Color). ### tapToClose ```ts tapToClose: boolean ``` Allows closing by tapping on the shade cover. ### animation ```ts animation: { enterFrom?: TransitionAnimation, exitTo?: TransitionAnimation } ``` `enterFrom` is only applied if it's the first one to be opened. `exitFrom` is only applied if it's the last one to be closed See [TransitionAnimation](#transitionAnimation). ### ignoreShadeRestore ```ts ignoreShadeRestore: boolean ``` ## TransitionAnimation {#transitionAnimation} ```ts interface TransitionAnimation { translateX?: number translateY?: number scaleX?: number scaleY?: number rotate?: number // degrees opacity?: number duration?: number // in ms curve?: CoreTypes.AnimationCurve } ``` See [CoreTypes.AnimationCurve](/api/namespace/CoreTypes-AnimationCurve). --- --- url: 'https://docs.nativescript.org/ui/flexbox-layout.md' description: A layout container that implements (close-to-spec) CSS Flexbox. --- `` is a layout container that provides a non-exact implementation of [CSS Flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox). This layout lets you arrange child components both horizontally and vertically. Items are placed in the order they were declared in, unless overridden by the `order` child property. ## Examples ### Default FlexboxLayout The following example creates a row of three equally-sized elements that span across the entire height of the screen. ```xml ``` ### Default FlexboxLayout with items aligned to the top (`flex-start`) The following example creates a row with items aligned to the top of the FlexboxLayout container (`flex-start`). ```xml ``` ### Custom item ordering in a FlexboxLayout The following example reorders items using the `order` property. ```xml ``` ### FlexboxLayout with item wrapping The following example shows items that wrap to a new row when there's not enough space for them to fit on the first row. ```xml ``` ### FlexboxLayout with a vertical direction (`column`) The following example creates a column of three equally-sized elements that span across the entire width of the screen. ::: info Flexbox axis changed This is the opposite of the default `flexDirection`, notice how the items are laid out in a column instead of a row. ::: ```xml ``` ### Reversed items with mixed alignment in a FlexboxLayout The following example paces items in a reversed column direction, with the remaining space split between items, and the begginging/end of the FlexboxLayout container using `justifyContent`. The example also shows how items can modify their position using `alignSelf` ```xml ``` ## Props ### flexDirection ```ts flexDirection: 'row' | 'row-reverse' | 'column' | 'column-reverse' ``` Sets the direction for placing child elements in the flexbox container. Valid values: * `row` - horizontal, left to right * `row-reverse` - horizontal, right to left * `column` - vertical, top to bottom * `column-reverse` - vertical, bottom to top Default value: `row`. ### flexWrap ```ts flexWrap: 'nowrap' | 'wrap' | 'wrap-reverse' ``` Sets whether child elements are forced in a single line or can flow into multiple lines. If set to multiple lines, also defines the cross axis which determines the direction new lines are stacked in. Valid values: * `nowrap` - single line which may cause the container to overflow * `wrap` - multiple lines, direction is defined by `flexDirection` * `wrap-reverse` - multiple lines, opposite to the direction defined by `flexDirection` Default value: `nowrap`. ### justifyContent ```ts justifyContent: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' ``` Sets the alignment of child elements along the main axis. You can use it to distribute leftover space when all the child elements on a line are inflexible or are flexible but have reached their maximum size. You can also use it to control the alignment of items when they overflow the line. Valid values: * `flex-start` - items are packed toward the start line * `flex-end` - items are packed toward the end line * `center` - items are centered along the line * `space-between` - items are evenly distributed on the line—first item is on the start line, last item on the end line * `space-around` - items are evenly distributed on the line with equal space around them Default value: `flex-start`. ### alignItems ```ts alignItems: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' ``` (Android-only) Sets the alignment of child elements along the cross axis on the current line. Acts as `justifyContent` for the cross axis. Valid values: * `flex-start` - cross-start margin edge of the items is placed on the cross-start line * `flex-end` - cross-end margin edge of the items is placed on the cross-end line * `center` - items are centered оn the cross axis * `baseline` - the item baselines are aligned * `stretch` - items are stretched to fill the container but respect `min-width` and `max-width` Default value: `stretch`. ### alignContent ```ts alignContent: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch' ``` Sets how lines are aligned in the flex container on the cross axis, similar to how `justifyContent` aligns individual items within the main axis. This property has no effect when the flex container has only one line. Valid values: * `flex-start` - lines are packed to the start of the container * `flex-end` - lines are packed to the end of the container * `center` - lines are packed to the center of the container * `space-between` - lines are evenly distributed; the first line is at the start of the container while the last one is at the end * `space-around` - lines are evenly distributed with equal space between them * `stretch` - lines are stretched to take up the remaining space Default value: `stretch`. ### ...Inherited Additional inherited properties not shown. Refer to the [API Reference](/api/class/FlexboxLayout) ## Children props When an element is a direct child of ``, these properties are accounted for: ### order ```ts order: number ``` Sets the order in which child element appear in relation to one another. ### flexGrow ```ts flexGrow: number ``` 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. ### flexShrink ```ts flexShrink: number ``` 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`. ### alignSelf ```ts alignSelf: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' ``` (Android-only) Overrides the `alignItems` value for the child. Valid values: * `flex-start` (cross-start margin edge of the item is placed on the cross-start line), * `flex-end` (cross-end margin edge of the item is placed on the cross-end line), * `center` (item is centered on the cross axis), * `baseline` (the item baselines are aligned), and * `stretch` (items is stretched to fill the container but respects `min-width` and `max-width`). Default value: `stretch`. ### flexWrapBefore ```ts flexWrapBefore: boolean ``` When `true`, forces the item to wrap onto a new line. ::: info Note This property is not part of the CSS Flexbox specification. ::: Default value: `false`. --- --- url: 'https://docs.nativescript.org/ui/wrap-layout.md' description: Layout Container that wraps it's items once there's no more space to fit them. --- `` is a layout container that lets you position items in rows or columns, based on the `orientation` property. When the space is filled, the container automatically wraps items onto a new row or column. ## Examples ### Horizontal WrapLayout By default, a `WrapLayout` wraps its child items along a row. The following example creates a row of equally-sized items. When the row runs out of space, the container wraps the last item to a new row. ```xml ``` ### Vertical WrapLayout To wrap child items vertically, set the `WrapLayout`'s `orentation` property to `vertical`. The following example creates a column of equally-sized items. When the column runs out of space, the container wraps the last item to a new column. ```xml ``` ## Props ### orientation ```ts orientation: 'horizontal' | 'vertical' ``` Specifies the stacking direction. Defaults to `horizontal`. ### itemWidth ```ts itemWidth: number ``` Sets the width used to measure and layout each child. When not set, the item width is automatically calculated based on it's contents. Defaults to `Number.NaN`. ### itemHeight ```ts itemHeight: number ``` Sets the height used to measure and layout each child. When not set, the item height is automatically calculated based on it's contents. ### ...Inherited For additional inherited properties not shown, refer to the [API Reference](/api/class/WrapLayout). --- --- url: 'https://docs.nativescript.org/ui/dock-layout.md' description: Layout container for docking views to the sides or the middle. --- `` is a layout container that lets you dock child views to the sides or the center of the layout. `` has the following behavior: * Uses the `dock` property to dock its children to the `left`, `right`, `top`, `bottom` or center of the layout.To dock a child element to the center, it must be the **last child** of the container and you must set the `stretchLastChild` property of the parent to `true`. * Enforces layout constraints to its children. * Resizes its children at runtime when its size changes. ## Examples ### Dock to every side without stretching the last child The following example creates a frame-like layout consisting of 4 elements, positioned at the 4 edges of the screen. ```xml ``` ### Dock to every side and stretch the last child The following example shows how `stretchLastChild` affects the positioning of child elements in a `DockLayout` container. The last child (`bottom`) is stretched to take up all the remaining space after positioning the first three elements. ```xml ``` ### Dock to every side and the center The following example creates a `` of 5 elements. The first four wrap the center element in a frame. ```xml ``` ### Dock multiple children to the same side The following example creates a single line of 4 elements that stretch across the entire height and width of the screen. ```xml ``` ## Props ### stretchLastChild ```ts stretchLastChild: boolean ``` Enables or disables stretching the last child to fit the remaining space. ### ...Inherited Additional inherited properties not shown. Refer to the [API Reference](/api/class/DockLayout). ## Children props When an element is a direct child of ``, these properties are accounted for: ### dock ```ts dock: 'top' | 'right' | 'bottom' | 'left' ``` Specifies which side to dock the element to. --- --- url: 'https://docs.nativescript.org/ui/absolute-layout.md' description: A simple layout container for positioning elements at top/left coordinates. --- The `` container is the simplest layout container in NativeScript. `` has the following behavior: * Uses a pair of absolute top/left coordinates to position its children. * Doesn't enforce any layout constraints on its children. * Doesn't resize its children at runtime when its size changes. ### Creating a simple grid-like layout The following example creates a simple grid. ```xml ``` ::: warning Note This example shows building a grid-like layout, this mainly serves as an example to illustrate how `` works. In most cases building this UI will be better served by using a [GridLayout](/ui/grid-layout). ::: ### Overlapping elements The following example creates a group of overlapping items. ```xml ``` ::: warning Note If you need to build more complex UIs with overlapping elements, consider using a [GridLayout](/ui/grid-layout) for greater flexibility. ::: ## AbsoluteLayout Reference ### Props | Name | Type | Description | | -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------- | | `N/A` | `N/A` | None. | | `...Inherited` | `Inherited` | Additional inherited properties not shown. Refer to the [API Reference](https://docs.nativescript.org/api/class/AbsoluteLayout) | ### Children props When an element is a direct child of ``, you can set the following additional properties. | Name | Type | Description | | ------ | -------- | --------------------------------------------------------------------------------------------------------- | | `top` | `Number` | Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. | | `left` | `Number` | Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. | --- --- url: 'https://docs.nativescript.org/ui/frame.md' description: UI component for displaying and navigating between Pages. --- `` is a UI component used to display and navigate between [Pages](/ui/page). A NativeScript app can have multiple Frames, or none - most apps will have at least a single Frame often set as the the root view (or inside a [RootLayout](/ui/root-layout)). ## Examples ### A single root Frame This example shows a single root frame that navigates to the `main-page` by default, and allows the user to navigate further within this frame (spanning the full-screen). ```xml ``` ### A global menu bar and a Frame This example shows an always visible menu bar stacked above a Frame that allows the user to navigate further. ```xml ``` ::: info Note We have wrapped the Frame inside a ContentView because on iOS a frame always spans the full height of it's parent container, so we wouldn't be able to resize it without the additional ContentView. ::: ### Multiple root Frames This pseudo example shows two Frames side-by-side, the frame on the left represents a list of conversations, and the Frame on the right represents the details of the currently selected conversation. The idea of using a Frame on the left is to allow navigating to a different Page while keeping the conversation-details open on the right. ```xml ``` ::: info Note This is a simplified example to convey the possibilities, in a real app implementation there would be nuances specific to the app. ::: ## Props ### actionBarVisibility ```ts actionBarVisibility: 'auto' | 'always' | 'never' ``` Used to control the visibility the Navigation Bar in iOS and the ActionBar in Android for all Pages within this Frame. ### animated ```ts animated: boolean ``` Gets or sets if navigation transitions within this Frame should be animated. ### backStack ```ts backStack: BackstackEntry[] ``` **Readonly** list of backstack entries. See [BackstackEntry](/api/interface/BackstackEntry). ### currentEntry ```ts currentEntry: NavigationEntry ``` **Readonly**. The current NavigationEntry the Frame is navigated to. See [NavigationEntry](#navigation-entry). ### currentPage ```ts currentPage: Page ``` **Readonly**. The current Page the Frame is navigated to. See [Page](/ui/page). ### transition ```ts transition: NavigationTransition ``` Gets or sets the default navigation transition for this Frame. See [NavigationTransition](#navigation-transition). ### defaultAnimatedNavigation ```ts defaultAnimatedNavigation: boolean ``` **Static**. Gets or sets if navigation transitions should be animated globally. ### defaultTransition ```ts defaultTransition: NavigationTransition ``` **Static**. Gets or sets the default NavigationTransition for all frames across the app. See [NavigationTransition](/api/interface/NavigationTransition). ### ...Inherited For additional inherited properties, refer to the [API Reference](/api/class/Frame). ## Methods ### canGoBack() ```ts canGoBack(): boolean ``` Returns wether or not this Frame can navigate back (there are entries in the backstack). ### goBack() ```ts goBack(to?: BackstackEntry): void ``` Navigates to the previous entry (or `to`) in the backstack. See [BackstackEntry](/api/interface/BackstackEntry). ### navigate() ```ts navigate(pageModuleName: string): void // or navigate(create: () => Page): void // or navigate(entry: NavigationEntry): void ``` Navigates to a Page. See [Frame.navigate Reference](/api/class/Frame#navigate), [Page](/ui/page), [NavigationEntry](#navigation-entry). ### getFrameById() ```ts getFrameById(id: string): Frame ``` **Static**. Returns a Frame by it's `id` if found. See [Frame](/ui/frame). ### topmost() ```ts topmost(): Frame ``` **Static**. Returns the topmost frame. See [Frame](/ui/frame). ## Events ### navigatingTo ```ts on('navigatingTo', (args: NavigationData) => { const frame = args.object as Frame const entry = args.entry as BackstackEntry const page = entry.resolvedPage as Page }) ``` Emitted when the Frame is navigating to a new Page. ### navigatedTo ```ts on('navigatedTo', (args: NavigationData) => { const frame = args.object as Frame const entry = args.entry as BackstackEntry const page = entry.resolvedPage as Page }) ``` Emitted when the Frame has navigated to a new Page. ## NavigationTransition Interface {#navigation-transition} See [NavigationTransition API Reference](/api/interface/NavigationTransition). ### name {#transition-name} ```ts name: string ``` A named transition name. Available transitions: * `curl` (same as `curlUp`) (**iOS only**) * `curlUp` (**iOS only**) * `curlDown` (**iOS only**) * `explode` (**Android only**) * `fade` * `flip` (same as `flipRight`) * `flipRight` * `flipLeft` * `slide` (same as `slideLeft`) * `slideLeft` * `slideRight` * `slideTop` * `slideBottom` ### instance ```ts instance: Transition ``` This property allows you to define a custom transition instance See [Transition](/api/class/Transition). ### duration ```ts duration: number ``` The duration of the transition in milliseconds ### curve ```ts curve: CoreTypes.AnimationCurve ``` Sets the transition animation curve. Alternatively, you can pass an instance of type [UIViewAnimationCurve](https://developer.apple.com/documentation/uikit/uiview/animationcurve) for iOS or [android.animation.TimeInterpolator](https://developer.android.com/reference/android/animation/TimeInterpolator) for Android. See [CoreTypes.AnimationCurve](/api/namespace/CoreTypes-AnimationCurve). ## NavigationEntry Interface {#navigation-entry} See [NavigationEntry API Reference](/api/interface/NavigationEntry). ### moduleName ```ts moduleName: string ``` The name of the Page module to navigate to (eg. `pages/details-page` given a `pages/details-page.xml` exists). ### create() ```ts create: () => View ``` A function called to create the Page (View instance) to be navigated to. ::: details Example ```ts function create() { const page = new Page() const actionBar = new ActionBar() actionBar.title = 'Example Page' page.actionBar = actionBar const stackLayout = new StackLayout() stackLayout.backgroundColor = '#65adf1' page.content = stackLayout return page } ``` ::: ### context ```ts context: any ``` An object used to pass data to the navigated to Page. ### transition {#navigation-entry-transition} ```ts transition: string | NavigationTransition ``` The [transition name](#transition-name), or a NavigationTransition to use when navigating. See [NavigationTransition](#navigation-transition). ### transitionAndroid ```ts transitionAndroid: string | NavigationTransition ``` Overrides the [transition](#navigation-entry-transition) property when navigating on Android. See [NavigationTransition](#navigation-transition). ### transitioniOS ```ts transitioniOS: string | NavigationTransition ``` Overrides the [transition](#navigation-entry-transition) property when navigating on iOS. See [NavigationTransition](#navigation-transition). ### backstackVisible ```ts backstackVisible: boolean ``` If set to `true`, it records the navigation in the backstack. If set to `false`, it navigates without affecting the backstack. Once navigated away from the Page, it will get disposed and the user can't navigate back to it (via the back button). ### clearHistory ```ts clearHistory: boolean ``` If set to `true`, it clears the navigation history backstack. ## Native component * Android: [`org.nativescript.widgets.ContentLayout`](https://github.com/NativeScript/tns-core-modules-widgets/blob/master/android/widgets/src/main/java/org/nativescript/widgets/ContentLayout.java) * iOS: [`UINavigationController`](https://developer.apple.com/documentation/uikit/uinavigationcontroller) --- --- url: 'https://docs.nativescript.org/ui/page.md' description: UI component for representing application screens the users can navigate to. --- `` is a UI component for representing screens that users are able to navigate to through a [Frame](/ui/frame). A Page itself can only contain a single child view with the exception of the [ActionBar](/ui/action-bar) which has it's own special "slot". ```xml ``` ## Page Lifecycle A page emits various events during navigation that you can use to update data/state in your app. ### Lifecycle event examples ::: details Navigating forward and back ```bash # frame.navigate(mainPage) - initial navigation mainPage > navigatingTo (isBackNavigation: false) mainPage > loaded mainPage > navigatedTo (isBackNavigation: false) # frame.navigate(detailsPage) mainPage > navigatingFrom (isBackNavigation: false) detailsPage > navigatingTo (isBackNavigation: false) detailsPage > loaded mainPage > unloaded mainPage > navigatedFrom (isBackNavigation: false) detailsPage > navigatedTo (isBackNavigation: false) # frame.goBack() detailsPage > navigatingFrom (isBackNavigation: true) mainPage > navigatingTo (isBackNavigation: true) mainPage > loaded detailsPage > unloaded detailsPage > navigatedFrom (isBackNavigation: true) detailsPage > disposeNativeView # since it's no longer in the backstack mainPage > navigatedTo (isBackNavigation: true) ``` ::: ::: details Navigating forward and clearing history ```bash # frame.navigate(mainPage) - initial navigation mainPage > navigatingTo (isBackNavigation: false) mainPage > loaded mainPage > navigatedTo (isBackNavigation: false) # frame.navigate(detailsPage, { clearHistory: true }) mainPage > navigatingFrom (isBackNavigation: false) detailsPage > navigatingTo (isBackNavigation: false) detailsPage > loaded mainPage > unloaded mainPage > navigatedFrom (isBackNavigation: false) mainPage > disposeNativeView detailsPage > navigatedTo (isBackNavigation: false) # frame.goBack() - no-op, there's nothing in the backstack. ``` ::: ::: details Navigating forward without a backstack entry ```bash # frame.navigate(mainPage, { backstackVisible: false }) - initial navigation mainPage > navigatingTo (isBackNavigation: false) mainPage > loaded mainPage > navigatedTo (isBackNavigation: false) # frame.navigate(detailsPage) mainPage > navigatingFrom (isBackNavigation: false) detailsPage > navigatingTo (isBackNavigation: false) detailsPage > loaded mainPage > unloaded mainPage > navigatedFrom (isBackNavigation: false) mainPage > disposeNativeView # since backstackVisible: false, we won't be able to reach mainPage after this point detailsPage > navigatedTo (isBackNavigation: false) ``` ::: ## Examples ### Getting a reference to the current Page NativeScript provides various ways to access the current Page instance. #### Via Page Events Any events emitted by the Page will have a reference to the Page itself via `args.object`. For example: ```ts // loaded event onPageLoaded(args: LoadEventData) { const page = args.object as Page; } // navigatedTo event onNavigatedTo(args: NavigatedData) { const page = args.object as Page; } ``` #### Via the page property of any View within the Page Any View nested inside a Page hierarchy can access the Page via the `page` property. ```ts onTap(args: EventData) { const button = args.object as Button const page = button.page as Page; } ``` #### Via the currentPage property of a Frame instance The currently displayed page can be accessed via the Frame, to get a reference to the frame you can use `Frame.topmost()` for example: ```ts import { Frame } from '@nativescript/core' const frame = Frame.topmost() const page = frame.currentPage // Page ``` See [Frame](/ui/frame), [Getting a Frame Instance](/ui/frame#getting-a-frame-instance). ### Handling various Page events A page emits various events during it's lifecycle, navigation events and general View events like `loaded`/`unloaded`/`layoutChanged` etc. ::: code-group ```xml [Page Definition] ``` ```ts [Event Handlers] onLoaded(args: EventData) { const page = args.object as Page } onUnloaded(args: EventData) { const page = args.object as Page } onLayoutChanged(args: EventData) { const page = args.object as Page } onNavigatedTo(args: NavigatedData) { const page = args.object as Page console.log(args.isBackNavigation) } onNavigatingFrom(args: NavigatedData) { const page = args.object as Page console.log(args.isBackNavigation) } onNavigatedFrom(args: NavigatedData) { const page = args.object as Page console.log(args.isBackNavigation) } ``` ::: ## Props ### actionBar ```ts actionBar: ActionBar ``` Gets or sets the ActionBar for this page. See [ActionBar](/ui/action-bar). ### actionBarHidden ```ts actionBarHidden: boolean ``` Allows hiding the ActionBar. Defaults to `false`. ### frame ```ts frame: Frame ``` The Frame instance containing the page. See [Frame](/ui/frame). ### navigationContext ```ts navigationContext: any ``` A context used to pass data during navigation. ### backgroundSpanUnderStatusBar ```ts backgroundSpanUnderStatusBar: boolean ``` Gets or sets whether the background of the page spans under the status bar. Defaults to `false`. ### androidStatusBarBackground ```ts androidStatusBarBackground: Color ``` Gets or sets the color of the status bar on Android devices. **Android only.** See [Color](/api/class/Color). ### androidOverflowEdge ```ts androidOverflowEdge: | 'none' | 'left' | 'top' | 'right' | 'bottom' | 'dont-apply' | 'left-dont-consume' | 'top-dont-consume' | 'right-dont-consume' | 'bottom-dont-consume' | 'all-but-left' | 'all-but-top' | 'all-but-right' | 'all-but-bottom' ``` Controls how Android system insets (status bar, navigation bar, cutouts) are applied and/or consumed by the Page. When insets are applied, they are added to the Page's padding. Insets propagate down the view hierarchy until consumed. Defaults to `'dont-apply'` for Pages. **Android only.** Options: | Value | Behavior | | ----------------------------------- | -------------------------------------------------------------------------- | | `none` | Apply and consume all inset edges | | `left` / `top` / `right` / `bottom` | Apply and consume only the specified edge | | `dont-apply` | Do not apply or consume any insets — triggers `androidOverflowInset` | | `left-dont-consume` | Apply the left inset but do not consume it; all other insets are ignored | | `top-dont-consume` | Apply the top inset but do not consume it; all other insets are ignored | | `right-dont-consume` | Apply the right inset but do not consume it; all other insets are ignored | | `bottom-dont-consume` | Apply the bottom inset but do not consume it; all other insets are ignored | | `all-but-left` | Apply and consume all insets except left | | `all-but-top` | Apply and consume all insets except top | | `all-but-right` | Apply and consume all insets except right | | `all-but-bottom` | Apply and consume all insets except bottom | ### enableSwipeBackNavigation ```ts enableSwipeBackNavigation: boolean ``` Gets or sets whether the page can be swiped back on iOS. **iOS only.** Defaults to `true`. ### statusBarStyle ```ts statusBarStyle: 'light' | 'dark' ``` Gets or sets the style of the status bar. ### ...Inherited For additional inherited properties, refer to the [API Reference](/api/class/Page). ## Events ### loaded ```ts on('loaded', (args: EventData) => { const page = args.object as Page console.log('Page loaded') }) ``` Emitted after the page has been loaded. ### navigatingTo ```ts on('navigatingTo', (args: NavigatedData) => { const page = args.object as Page console.log('Page is being navigated to:', args.isBackNavigation) }) ``` Emitted before the app has navigated to the current page. ### navigatedTo ```ts on('navigatedTo', (args: NavigatedData) => { const page = args.object as Page console.log('Page has been navigated to:', args.isBackNavigation) }) ``` Emitted after the app has navigated to the current page. ### navigatingFrom ```ts on('navigatingFrom', (args: NavigatedData) => { const page = args.object as Page console.log('Page is being navigated from:', args.isBackNavigation) }) ``` Emitted before the app has navigated away from the current page. ### navigatedFrom ```ts on('navigatedFrom', (args: NavigatedData) => { const page = args.object as Page console.log('Page has been navigated from:', args.isBackNavigation) }) ``` Emitted after the app has navigated away from the current page. ### androidOverflowInset ```ts on('androidOverflowInset', (args) => { // args.inset: { top, bottom, left, right, topConsumed?, bottomConsumed?, leftConsumed?, rightConsumed? } }) ``` Emitted when `androidOverflowEdge` is set to `'dont-apply'`, allowing manual handling of system insets. You can inspect and modify inset values and explicitly consume individual sides by setting the corresponding `*Consumed` flags. **Android only.** Example: ```ts page.on('androidOverflowInset', (args) => { // Modify inset values if needed args.inset.top += 10 args.inset.bottom += 10 args.inset.left += 10 args.inset.right += 10 // Explicitly consume each side args.inset.topConsumed = true args.inset.bottomConsumed = true args.inset.leftConsumed = true args.inset.rightConsumed = true }) ``` ## Android: Edge-to-Edge tip ::: tip Edge-to-Edge on Android You can opt into full edge-to-edge and precisely control how system insets are handled on a per-Page basis. * Set `androidOverflowEdge` to choose which inset edges to apply and/or consume. Pages default to `'dont-apply'`. * When using `'dont-apply'`, handle `androidOverflowInset` to adjust and explicitly consume sides. * Call `Utils.android.enableEdgeToEdge(...)` to enable edge-to-edge and configure light/dark system UI overlays. Example: ```ts import { Utils } from '@nativescript/core' // Let the page handle insets manually page.androidOverflowEdge = 'dont-apply' // Enable edge-to-edge (Android) with light/dark colors import { Application, Color } from '@nativescript/core' const activity = Application.android.foregroundActivity || Application.android.startActivity Utils.android.enableEdgeToEdge(activity, { statusBarLightColor: new Color('#FFFFFF'), statusBarDarkColor: new Color('#000000'), }) // Optionally handle and consume insets yourself page.on('androidOverflowInset', (args) => { args.inset.top += 8 args.inset.bottom += 8 args.inset.topConsumed = true args.inset.bottomConsumed = true }) ``` See also: [enableEdgeToEdge](/core/utils#enableedgetoedge). ::: ## Native component * Android: [`org.nativescript.widgets.GridLayout`](https://github.com/NativeScript/NativeScript/blob/master/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/GridLayout.java) * iOS: [`UIViewController`](https://developer.apple.com/documentation/uikit/uiviewcontroller) --- --- url: 'https://docs.nativescript.org/ui/action-bar.md' description: 'UI component abstracting the Android ActionBar, and the iOS NavigationBar.' --- `` is NativeScript’s abstraction over the Android [ActionBar](https://developer.android.com/training/appbar/) and iOS [NavigationBar](https://developer.apple.com/design/human-interface-guidelines/ios/bars/navigation-bars/). It represents a toolbar at the top of the activity window, and can have a title, application-level navigation, as well as other custom interactive items. Views also part of the ActionBar abstraction: * [ActionItem](#action-item) * [NavigationButton](#navigation-button) ```xml ``` ```ts \[TypeScript] router = inject(RouterExtensions); goBack() { this.router.back(); } ``` ```tsx import { Dialogs, Frame } from '@nativescript/core' import { RouteProp } from '@react-navigation/core' import * as React from 'react' import { StyleSheet } from 'react-nativescript' import { FrameNavigationProp } from 'react-nativescript-navigation' import { MainStackParamList } from '../../NavigationParamList' type HomeProps = { route: RouteProp navigation: FrameNavigationProp } export function ActionBar({ navigation }: HomeProps) { return ( <> {/* #region example */} Frame.goBack()}> {/* #endregion example */} ) } const styles = StyleSheet.create({ container: { height: '100%', flexDirection: 'column', justifyContent: 'center', }, text: { textAlignment: 'center', fontSize: 24, color: 'black', }, button: { fontSize: 24, color: '#2e6ddf', }, }) ``` ```tsx {/* #region example */} import { Frame } from '@nativescript/core' export const ActionBar = () => { function goBack() { Frame.goBack() } return (<> ) } {/* #endregion example */} ``` ```svelte ``` ```vue ``` ## Examples ### ActionBar with a custom title view ```xml ``` ### ActionBar with an always visible Android icon ```xml ``` ### Customizing the ActionBar ```xml ``` ```tsx import { Dialogs, Frame } from '@nativescript/core' import { RouteProp } from '@react-navigation/core' import * as React from 'react' import { StyleSheet } from 'react-nativescript' import { FrameNavigationProp } from 'react-nativescript-navigation' import { MainStackParamList } from '../../NavigationParamList' type HomeProps = { route: RouteProp navigation: FrameNavigationProp } export function Button({ navigation }: HomeProps) { return ( <> Frame.goBack()}> {/* #region example */} {/* #endregion example */} ) } const styles = StyleSheet.create({ container: { height: '100%', flexDirection: 'column', justifyContent: 'center', }, text: { textAlignment: 'center', fontSize: 24, color: 'black', }, button: { fontSize: 24, color: '#2e6ddf', }, }) ``` ```tsx import { Frame } from '@nativescript/core' export const Button = () => { function goBack() { Frame.goBack() } return ( <> {/* #region example */} {/* #endregion example */} ) } ``` ```svelte ``` ```vue ``` ## Examples ### Formatting text inside a Button If you need to style parts of the text, you can use a combination of a `FormattedString` and `Span` elements. ```xml ``` ## Props ### text ```ts text: string ``` Sets the text shown in the button. ### textWrap ```ts textWrap: boolean ``` Gets or sets whether the button should wrap longer text to new lines. Default value is `false`. ### isEnabled ```ts isEnabled: boolean ``` Allows disabling the button. A disabled button does not react to user gestures. Default value is `true`. ### ...Inherited For additional inherited properties, refer to the [API Reference](/api/class/Button). ## Events ### tap ```ts on('tap', (args: TapGestureEventData) => { const button = args.object as Button console.log(`The button has been tapped!`) }) ``` Emitted when the button is tapped See [TapGestureEventData](/api/interface/TapGestureEventData). ## Native component * Android: [`android.widget.Button`](https://developer.android.com/reference/android/widget/Button.html) * iOS: [`UIButton`](https://developer.apple.com/documentation/uikit/uibutton) --- --- url: 'https://docs.nativescript.org/ui/date-picker.md' description: UI component for selecting a date. --- `` is a UI component that lets users select a date from a pre-configured range. See also: [TimePicker](/ui/time-picker). ```xml ``` ```html ``` ```tsx import { Dialogs, Frame } from '@nativescript/core' import { RouteProp } from '@react-navigation/core' import * as React from 'react' import { StyleSheet } from 'react-nativescript' import { FrameNavigationProp } from 'react-nativescript-navigation' import { MainStackParamList } from '../../NavigationParamList' type HomeProps = { route: RouteProp navigation: FrameNavigationProp } export function DatePicker({ navigation }: HomeProps) { const date = new Date() return ( <> Frame.goBack()} > {/* #region example */} {/* #endregion example */} ) } const styles = StyleSheet.create({ container: { height: '100%', flexDirection: 'column', justifyContent: 'center', }, text: { textAlignment: 'center', fontSize: 24, color: 'black', }, button: { fontSize: 24, color: '#2e6ddf', }, }) ``` ```tsx import { Frame } from '@nativescript/core' export const DatePicker = () => { const date = new Date(1997, 2, 16) function goBack() { Frame.goBack() } return ( <> {/* #region example */} {/* #endregion example */} ) } ``` ```svelte ``` ```vue ``` ## Props ### date ```ts date: Date ``` Gets or sets the complete date. ### minDate ```ts minDate: Date ``` Gets or sets the earliest possible date to select. ### maxDate ```ts maxDate: Date ``` Gets or sets the latest possible date to select. ### day ```ts day: number ``` Gets or sets the day of the month. ### month ```ts month: number ``` Gets or sets the month. ### year ```ts year: number ``` Gets or sets the year. ### iosPreferredDatePickerStyle ```ts iosPreferredDatePickerStyle: UIDatePickerStyle ``` Gets or set the UIDatePickerStyle of the DatePicker in iOS `13.4+`. Default value: `0` (automatic). Valid values: * `0 = automatic`: system picks the concrete style based on the current platform and DatePicker mode. * `1 = wheels`: the DatePicker displays as a wheel picker. * `2 = compact` : the DatePicker displays as a label that when tapped displays a calendar-style editor. * `3 = inline` : the DatePickers displays as an inline, editable field ## Events ### dateChange ```ts on('dateChange', (args: PropertyChangeData) => { const picker = args.object as DatePicker console.log('New date:', args.value) }) ``` Emitted when the selected date changes. See [PropertyChangeData](/api/interface/PropertyChangeData). ### minDateChange ```ts on('minDateChange', (args: PropertyChangeData) => { const picker = args.object as DatePicker console.log('New minDate:', args.value) }) ``` Emitted when the minimum date changes. See [PropertyChangeData](/api/interface/PropertyChangeData). ### maxDateChange ```ts on('maxDateChange', (args: PropertyChangeData) => { const picker = args.object as DatePicker console.log('New maxDate:', args.value) }) ``` Emitted when the maximum date changes. See [PropertyChangeData](/api/interface/PropertyChangeData). ### dayChange ```ts on('dayChange', (args: PropertyChangeData) => { const picker = args.object as DatePicker console.log('New day:', args.value) }) ``` Emitted when the day changes. See [PropertyChangeData](/api/interface/PropertyChangeData). ### monthChange ```ts on('monthChange', (args: PropertyChangeData) => { const picker = args.object as DatePicker console.log('New month:', args.value) }) ``` Emitted when the month changes. See [PropertyChangeData](/api/interface/PropertyChangeData). ### yearChange ```ts on('yearChange', (args: PropertyChangeData) => { const picker = args.object as DatePicker console.log('New year:', args.value) }) ``` Emitted when the year changes. See [PropertyChangeData](/api/interface/PropertyChangeData). ## Native component * Android: [`android.widget.DatePicker`](https://developer.android.com/reference/android/widget/DatePicker.html) * iOS: [`UIDatePicker`](https://developer.apple.com/documentation/uikit/uidatepicker) --- --- url: 'https://docs.nativescript.org/ui/html-view.md' description: UI component for rendering simple HTML content. --- `` is a UI component for rendering simple static HTML content. ::: tip For additional features and improved performance, consider using an alternative implementation like the [@nativescript-community/ui-label](https://github.com/nativescript-community/ui-label) from the community. ::: See also: [WebView](/ui/web-view). ```ts \[TypeScript] const htmlString = `

HtmlView

` ``` ```ts \[TypeScript] htmlString = `

HtmlView

` ``` ```tsx import { Dialogs, Frame } from '@nativescript/core' import { RouteProp } from '@react-navigation/core' import * as React from 'react' import { StyleSheet } from 'react-nativescript' import { FrameNavigationProp } from 'react-nativescript-navigation' import { MainStackParamList } from '../../NavigationParamList' type HomeProps = { route: RouteProp navigation: FrameNavigationProp } export function HtmlView({ navigation }: HomeProps) { // todo not working color const htmlString = `

HtmlView

` return ( <> Frame.goBack()}> {/* #region example */} {/* #endregion example */} ) } const styles = StyleSheet.create({ container: { height: '100%', flexDirection: 'column', justifyContent: 'center', }, text: { textAlignment: 'center', fontSize: 24, color: 'black', }, button: { fontSize: 24, color: '#2e6ddf', }, }) ``` ```tsx import { Frame } from '@nativescript/core' export const HtmlView = () => { const htmlString = `

HtmlView

` function goBack() { Frame.goBack() } return ( <> {/* @ts-ignore */} {/* #region example */} {/* #endregion example */} ) } ``` ```svelte ``` ```vue ``` ## Props ### html ```ts html: string ``` The HTML content to be shown. ### selectable ```ts selectable: boolean ``` Gets or sets a value indicating whether HtmlView content is selectable. ### ...Inherited For additional inherited properties, refer to the [API Reference](/api/class/HtmlView). ## Native component * Android: [`android.widget.TextView`](https://developer.android.com/reference/android/widget/TextView.html) * iOS: [`UITextView`](https://developer.apple.com/documentation/uikit/uitextview) --- --- url: 'https://docs.nativescript.org/ui/image.md' description: UI component for rendering images --- `` is a UI component for rendering images. Images can be referenced by URL, resource URL (`res://`), base64 string, font resource (`font://`), [ImageSource](/api/class/ImageSource), and [ImageAsset](/api/class/ImageAsset). ::: tip Working with many images can quickly become a memory hog, for improved image handling it's recommended to use an Image caching library. Here are a few plugins from our community: * [@triniwiz/nativescript-image-cache-it](https://triniwiz.github.io/nativescript-plugins/api-reference/image-cache-it.html) * [@nativescript-community/ui-image](https://github.com/nativescript-community/ui-image) ::: ```xml ``` ```html ``` ```tsx import { Dialogs, Frame } from '@nativescript/core' import { RouteProp } from '@react-navigation/core' import * as React from 'react' import { StyleSheet } from 'react-nativescript' import { FrameNavigationProp } from 'react-nativescript-navigation' import { MainStackParamList } from '../../NavigationParamList' type HomeProps = { route: RouteProp navigation: FrameNavigationProp } export function Image({ navigation }: HomeProps) { return ( <> Frame.goBack()}> {/* #region example */} {/* #endregion example */} ) } const styles = StyleSheet.create({ container: { height: '100%', flexDirection: 'column', justifyContent: 'center', }, text: { textAlignment: 'center', fontSize: 24, color: 'black', }, button: { fontSize: 24, color: '#2e6ddf', }, }) ``` ```tsx import { Frame } from '@nativescript/core' export const Image = () => { function goBack() { Frame.goBack() } return ( <> {/* @ts-ignore */} {/* #region example */} {/* #endregion example */} ) } ``` ```svelte ``` ```vue ``` ## Examples ### Displaying images from App\_Resources To display images from platform specific locations (`App_Resources/Android/drawable-XXX/`, or `App_Resources/iOS/`) prefix the source with `res://`. ```xml ``` ### Displaying images from the src/assets directory By default all assets placed in the `src/assets` directory (create the directory if it's not present) will be copied to the correct native platform location to be bundled with the app. To reference these images, prefix them with the `~` character, which is an alias pointing to the `src` folder. ```xml ``` ### Displaying images from URLs Images can be displayed from remote URLs. Depending on the software version of the device, insecure URLs may be blocked (`http://`), it's recommended to always use secure URLs (`https://`). ```xml ``` ### Displaying `base64`-encoded images Images can be displayed from `base64` encoded strings. ```xml ``` ### Rendering font icons as images Font symbols can be rendered as an image by prefixing the source with `font://` and setting the correct `font-family` via eg. a CSS class: ```xml ``` ```css .fas { font-family: 'Font Awesome'; /* ... */ } ``` ### Using SF Symbols on iOS (8.8+) Images can also be used to display [SF Symbols](https://developer.apple.com/sf-symbols/) on iOS by using the `sys://` prefix along with the symbol name. These also support `iosSymbolEffect` for animated effects as well as `iosSymbolScale` with a possible value of `small|medium|large`; ```html ``` ```ts import { ImageSymbolEffects } from '@nativescript/core' const symbolBounceEffect = ImageSymbolEffects.Bounce ``` This demonstrates using various built-in presets for effects and also using the `iosSymbolScale` property which is useful when you apply affects so the animation doesn't exceed the bounds of it's Image container (*as can be seen in the top left usage in the video*). #### Custom Symbol Effects You can also create custom effects using the full expansive iOS symbol API, for example: ```ts import { ImageSymbolEffect } from '@nativescript/core' const effect = new ImageSymbolEffect(NSSymbolBounceEffect.effect()) effect.options = NSSymbolEffectOptions.optionsWithSpeed(2).optionsWithRepeatCount(6) effect.completion = (context) => { console.log('effect completed!', context) } const customSymbolEffect = effect ``` ```html ``` ## Props ### src ```ts src: string | ImageSource | ImageAsset ``` Gets or sets the source. A string can be a `http://`, `https://`, `res://`, `font://` or an absolute path (eg. `~/assets/image.png`). See [`ImageSource`](/api/class/ImageSource) and [`ImageAsset`](/api/class/ImageAsset). ### imageSource ```ts imageSource: ImageSource ``` Gets or sets the source from an `ImageSource` instance. See [`ImageSource`](/api/class/ImageSource). ### tintColor ```ts tintColor: Color | string ``` Sets a color to tint the image. See [`Color`](/api/class/Color). ### stretch ```ts stretch: ImageStretchType // "none" | "aspectFill" | "aspectFit" | "fill" ``` Gets or sets the way the image is resized to fill its allocated space. See [`ImageStretchType`](/api/namespace/CoreTypes#imagestretchtype) ### iosSymbolEffect (8.8+) ```ts iosSymbolEffect: ImageSymbolEffect | ImageSymbolEffects ``` Gets or sets the effect of the SF Symbol. You can create your own custom `ImageSymbolEffect` or use presets defined from `ImageSymbolEffects`, for example: ```ts export enum ImageSymbolEffects { Appear = 'appear', AppearUp = 'appearUp', AppearDown = 'appearDown', Bounce = 'bounce', BounceUp = 'bounceUp', BounceDown = 'bounceDown', Disappear = 'disappear', DisappearDown = 'disappearDown', DisappearUp = 'disappearUp', Pulse = 'pulse', Scale = 'scale', ScaleDown = 'scaleDown', ScaleUp = 'scaleUp', VariableColor = 'variableColor', Breathe = 'breathe', BreathePlain = 'breathePlain', BreathePulse = 'breathePulse', Rotate = 'rotate', RotateClockwise = 'rotateClockwise', RotateCounterClockwise = 'rotateCounterClockwise', Wiggle = 'wiggle', WiggleBackward = 'wiggleBackward', WiggleClockwise = 'wiggleClockwise', WiggleCounterClockwise = 'wiggleCounterClockwise', WiggleDown = 'wiggleDown', WiggleForward = 'wiggleForward', WiggleUp = 'wiggleUp', WiggleLeft = 'wiggleLeft', WiggleRight = 'wiggleRight', } ``` Keep in mind that some are only iOS 17 or 18 and above. ### iosSymbolScale (8.8+) ```ts iosSymbolScale: number ``` Gets or sets the scale of the SF Symbol. ### loadMode ```ts loadMode: 'sync' | 'async' ``` Gets or sets the loading strategy for the images. Default value: `async`. Valid values: * `sync` - blocks the UI if necessary to display immediately. Only recommeded for small images like icons. * `async` - loads in the background, the image may appear with a short delay, good for large images. **Note:** When loading images from the web, they are always loaded `async`. ### ...Inherited For additional inherited properties, refer to the [API Reference](/api/class/Image). ## Native component * Android: [`android.widget.ImageView`](https://developer.android.com/reference/android/widget/ImageView) * iOS: [`UIImageView`](https://developer.apple.com/documentation/uikit/uiimageview) --- --- url: 'https://docs.nativescript.org/ui/label.md' description: UI component for displaying text. --- `