Hide the view and its children from the a11y service
A hint describes the elements behavior. Example: 'Tap change playback speed'
The view's unique accessibilityIdentifier.
This is used for automated testing.
Short description of the element, ideally one word.
Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification.
This view starts a media session. Equivalent to trait = startsMedia
Which role should this view be treated by the a11y service?
Which state should this view be treated as by the a11y service?
Current value of the element in a localized string.
If true
the element is an accessibility element and all the children will be treated as a single selectable component.
Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform.
Gets or sets the dynamic elevation offset of the android view.
Gets or sets the elevation of the android view.
Gets or sets the background style property.
Gets or sets the background color of the view.
Gets or sets the background image of the view.
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.
Gets or sets the bottom border color of the view.
Gets or sets the bottom left border radius of the view.
Gets or sets the bottom right border radius of the view.
Gets or sets the bottom border width of the view.
Gets or sets the border color of the view.
Gets or sets the left border color of the view.
Gets or sets the left border width of the view.
Gets or sets the border radius of the view.
Gets or sets the right border color of the view.
Gets or sets the right border width of the view.
Gets or sets the top border color of the view.
Gets or sets the top left border radius of the view.
Gets or sets the top right border radius of the view.
Gets or sets the top border width of the view.
Gets or sets the border width of the view.
Gets or sets the box shadow of the view.
Gets or sets the color of the view.
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.
Gets or sets font-size style property.
Gets or sets a formatted string.
Gets or sets the desired height of the view.
Gets or sets the alignment of this view within its parent along the Horizontal axis.
Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform.
Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false
Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false
Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true
Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view.
Gets is layout is valid. This is a read-only property.
Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view.
Gets or sets letterSpace style property.
Gets or sets lineHeight style property.
Gets or sets margin style property.
Specifies extra space on the bottom side of this view.
Specifies extra space on the left side of this view.
Specifies extra space on the right side of this view.
Specifies extra space on the top side of this view.
Gets or sets the minimum height the view may grow to.
Gets or sets the minimum width the view may grow to.
Returns the current modal view that this page is showing (is parent of), if any.
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
Gets or sets the opacity style property.
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.
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.
Gets or sets padding style property.
Specify the bottom padding of this layout.
Specify the left padding of this layout.
Specify the right padding of this layout.
Specify the top padding of this layout.
Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis.
Gets or sets the rotate affine transform of the view along the Z axis.
Gets or sets the rotate affine transform of the view along the X axis.
Gets or sets the rotate affine transform of the view along the Y axis.
Gets or sets the scaleX affine transform of the view.
Gets or sets the scaleY affine transform of the view.
Gets or sets the text.
Gets or sets text-alignment style property.
Gets or sets text decorations style property.
Gets or sets text shadow style property.
Gets or sets text transform style property.
Gets or sets the translateX affine transform of the view in device independent pixels.
Gets or sets the translateY affine transform of the view in device independent pixels.
Gets or sets the alignment of this view within its parent along the Vertical axis.
Gets or sets the visibility of the view.
Gets or sets white space style property.
Gets or sets the desired width of the view.
String value used when hooking to accessibilityBlur event.
String value used when hooking to accessibilityFocusChanged event.
String value used when hooking to accessibilityFocus event.
String value used when hooking to layoutChanged event.
String value used when hooking to showingModally event.
String value used when hooking to shownModally event.
Called for every child element declared in xml. This method will add a child element (value) to current element.
Name of the element.
Value of the element.
Method is intended to be overridden by inheritors and used as "protected".
Internal method:
Closes all modal views. Should be used by plugins like nativescript-angular
which implement their own modal views
service.
Return view bounds.
Internal method: Gets all modal views of the current view.
Obsolete: There is a new property system that does not rely on _getValue.
Checks whether the current view has specific view for an ancestor.
Called in android when native view is attached to window.
Called in android when native view is dettached from window.
iOS Only Internal method used to update various view details like background rerendering, border, etc.
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.
Method is intended to be overridden by inheritors and used as "protected"
Method is intended to be overridden by inheritors and used as "protected"
Called when the text property is changed to request layout.
Called by layout method to cache view bounds.
Called by measure method to cache measureSpecs.
Obsolete: There is a new property system that does not rely on _setValue.
Updates styleScope or create new styleScope.
Make an announcement to the screen reader.
Announce screen changed
A valid css which will be added to current css.
A valid file name (from the application root) which contains a valid css.
Animates one or more properties of the view based on the supplied options.
A valid file name (from the application root) which contains a valid css.
Creates an Animation object based on the supplied options.
Iterates over children of type View.
Called for each child of type View. Iteration stops if this method returns falsy value.
Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus.
Returns the actual size of the view in device-independent pixels.
Returns the location of this view in the window coordinate system.
Returns the location of this view in the screen coordinate system.
Returns the location of this view in the otherView's coordinate system.
Returns the raw height component.
Returns the raw width component.
Returns the iOS safe area insets of this view.
Android only check if gesture observers are attached
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.
Called from onLayout when native view position is about to be changed.
Left position, relative to parent
Top position, relative to parent
Right position, relative to parent
Bottom position, relative to parent
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.
Horizontal space requirements as imposed by the parent
Vertical space requirements as imposed by the parent
Removes listener(s) for the specified event name.
Comma delimited names of the events or gesture types the specified listener is associated with.
An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed.
An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener.
A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by ,
(e.g. "propertyChange", "change") or you can use gesture types.
Callback function which will be executed when event is raised.
An optional parameter which will be used as this
context for callback execution.
Raised when a loaded event occurs.
Raised when an unloaded event occurs.
Raised when a back button is pressed. This event is raised only for android.
Raised before the view is shown as a modal dialog.
Raised after the view is shown as a modal dialog.
Derived classes can override this method to handle Android back button press.
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.
Left position, relative to parent
Top position, relative to parent
Right position, relative to parent
Bottom position, relative to parent
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).
horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec.
vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec.
Send accessibility event
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.
The measured width of this view. May be a complex bit mask as defined by MEASURED_SIZE_MASK and MEASURED_STATE_TOO_SMALL.
The measured height of this view. May be a complex bit mask as defined by MEASURED_SIZE_MASK and MEASURED_STATE_TOO_SMALL.
Android only to set the touch listener
Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds.
This parameter is not used. You can pass null.
Left position, relative to parent
Top position, relative to parent
Right position, relative to parent
Bottom position, relative to parent
Measure a child by taking into account its margins and a given measureSpecs.
This parameter is not used. You can pass null.
The view to be measured.
The measured height that the parent layout specifies for this view.
The measured width that the parent layout specifies for this view.
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.
Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription()