Classes
Frame
Represents the logical View unit that is responsible for navigation within an application. Nested frames are supported, enabling hierarchical navigation scen...
Defined in: ui/frame/index.d.ts:16
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
new Frame(): Frame;Defined in: ui/core/view-base/index.ts
Returns
Frame
Inherited from
FrameBase.constructorProperties
_androidContentDescriptionUpdated?
optional _androidContentDescriptionUpdated?: boolean;Defined in: ui/core/view/index.d.ts:348
Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription()
Inherited from
FrameBase._androidContentDescriptionUpdated_automaticallyAdjustsScrollViewInsets
_automaticallyAdjustsScrollViewInsets: boolean;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._automaticallyAdjustsScrollViewInsets_closeModalCallback
protected _closeModalCallback: Function;Defined in: ui/core/view/view-common.ts
Inherited from
FrameBase._closeModalCallback_context
_context: any;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._context_cssState
_cssState: CssState;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._cssState_defaultPaddingBottom
protected _defaultPaddingBottom: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._defaultPaddingBottom_defaultPaddingLeft
protected _defaultPaddingLeft: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._defaultPaddingLeft_defaultPaddingRight
protected _defaultPaddingRight: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._defaultPaddingRight_defaultPaddingTop
protected _defaultPaddingTop: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._defaultPaddingTop_domId
_domId: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._domId_ignoreFlexMinWidthHeightReset
_ignoreFlexMinWidthHeightReset: boolean;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._ignoreFlexMinWidthHeightReset_isAddedToNativeVisualTree
_isAddedToNativeVisualTree: boolean;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._isAddedToNativeVisualTree_isInFrameStack
_isInFrameStack: boolean;Defined in: ui/frame/frame-common.ts
Inherited from
FrameBase._isInFrameStack_isPaddingRelative
protected _isPaddingRelative: boolean;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._isPaddingRelative_isStyleScopeHost
_isStyleScopeHost: boolean;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._isStyleScopeHost_oldBottom
_oldBottom: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._oldBottom_oldLeft
_oldLeft: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._oldLeft_oldRight
_oldRight: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._oldRight_oldTop
_oldTop: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._oldTop_resolvedPage
_resolvedPage: Page;Defined in: 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
FrameBase._resolvedPage_styleScope
_styleScope: StyleScope;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase._styleScope_suspendNativeUpdatesCount
_suspendNativeUpdatesCount: number;Defined in: 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
FrameBase._suspendNativeUpdatesCountaccessibilityHidden
accessibilityHidden: boolean;Defined in: ui/core/view/index.d.ts:250
Hide the view and its children from the a11y service
Ns Property
Inherited from
FrameBase.accessibilityHiddenaccessibilityHint
accessibilityHint: string;Defined in: ui/core/view/index.d.ts:295
A hint describes the elements behavior. Example: 'Tap change playback speed'
Ns Property
Inherited from
FrameBase.accessibilityHintaccessibilityIdentifier
accessibilityIdentifier: string;Defined in: ui/core/view/index.d.ts:259
The view's unique accessibilityIdentifier.
This is used for automated testing.
Ns Property
Inherited from
FrameBase.accessibilityIdentifieraccessibilityIgnoresInvertColors
accessibilityIgnoresInvertColors: boolean;Defined in: ui/core/view/index.d.ts:322
Ns Property
Inherited from
FrameBase.accessibilityIgnoresInvertColorsaccessibilityLabel
accessibilityLabel: string;Defined in: ui/core/view/index.d.ts:281
Short description of the element, ideally one word.
Ns Property
Inherited from
FrameBase.accessibilityLabelaccessibilityLanguage
accessibilityLanguage: string;Defined in: ui/core/view/index.d.ts:310
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
FrameBase.accessibilityLanguageaccessibilityLiveRegion
accessibilityLiveRegion: AccessibilityLiveRegion;Defined in: ui/core/view/index.d.ts:302
When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property.
Ns Property
Inherited from
FrameBase.accessibilityLiveRegionaccessibilityMediaSession
accessibilityMediaSession: boolean;Defined in: ui/core/view/index.d.ts:317
This view starts a media session. Equivalent to trait = startsMedia
Ns Property
Inherited from
FrameBase.accessibilityMediaSessionaccessibilityRole
accessibilityRole: AccessibilityRole;Defined in: ui/core/view/index.d.ts:266
Which role should this view be treated by the a11y service?
Ns Property
Inherited from
FrameBase.accessibilityRoleaccessibilityState
accessibilityState: AccessibilityState;Defined in: ui/core/view/index.d.ts:274
Which state should this view be treated as by the a11y service?
Ns Property
Inherited from
FrameBase.accessibilityStateaccessibilityValue
accessibilityValue: string;Defined in: ui/core/view/index.d.ts:288
Current value of the element in a localized string.
Ns Property
Inherited from
FrameBase.accessibilityValueaccessible
accessible: boolean;Defined in: ui/core/view/index.d.ts:243
If true the element is an accessibility element and all the children will be treated as a single selectable component.
Ns Property
Inherited from
FrameBase.accessibleactionBarVisibility
actionBarVisibility: "auto" | "always" | "never";Defined in: ui/frame/index.d.ts:116
Used to control the visibility the Navigation Bar in iOS and the Action Bar in Android.
Ns Property
Overrides
FrameBase.actionBarVisibilityalignSelf
alignSelf: AlignSelf;Defined in: ui/core/view-base/index.ts
(Android-only) Overrides the alignItems value for the child.
Ns Property
Inherited from
FrameBase.alignSelfandroid
android: AndroidFrame;Defined in: ui/frame/index.d.ts:160
Gets the AndroidFrame object that represents the Android-specific APIs for this Frame. Valid when running on Android OS.
Overrides
FrameBase.androidandroidDynamicElevationOffset
androidDynamicElevationOffset: number;Defined in: ui/core/view/index.d.ts:368
Gets or sets the dynamic elevation offset of the android view.
Ns Property
Inherited from
FrameBase.androidDynamicElevationOffsetandroidElevation
androidElevation: number;Defined in: ui/core/view/index.d.ts:361
Gets or sets the elevation of the android view.
Ns Property
Inherited from
FrameBase.androidElevationandroidOverflowEdge
androidOverflowEdge: AndroidOverflow;Defined in: ui/core/view/view-common.ts
Inherited from
FrameBase.androidOverflowEdgeanimated
animated: boolean;Defined in: ui/frame/index.d.ts:139
Gets or sets if navigation transitions should be animated.
Overrides
FrameBase.animatedautomationText
automationText: string;Defined in: ui/core/view/index.d.ts:354
Ns Property
Inherited from
FrameBase.automationTextbackground
background: string;Defined in: ui/core/view/index.d.ts:375
Gets or sets the background style property.
Ns Property
Inherited from
FrameBase.backgroundbackgroundColor
backgroundColor: string | Color;Defined in: ui/core/view/index.d.ts:382
Gets or sets the background color of the view.
Ns Property
Inherited from
FrameBase.backgroundColorbackgroundImage
backgroundImage: string | LinearGradient;Defined in: ui/core/view/index.d.ts:389
Gets or sets the background image of the view.
Ns Property
Inherited from
FrameBase.backgroundImagebackStack
backStack: BackstackEntry[];Defined in: ui/frame/index.d.ts:122
Gets the back stack of this instance.
Overrides
FrameBase.backStackbindingContext
bindingContext: any;Defined in: ui/core/view/index.d.ts:124
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
FrameBase.bindingContextborderBottomColor
borderBottomColor: Color;Defined in: ui/core/view/index.d.ts:152
Gets or sets the bottom border color of the view.
Ns Property
Inherited from
FrameBase.borderBottomColorborderBottomLeftRadius
borderBottomLeftRadius: LengthType;Defined in: ui/core/view/index.d.ts:229
Gets or sets the bottom left border radius of the view.
Ns Property
Inherited from
FrameBase.borderBottomLeftRadiusborderBottomRightRadius
borderBottomRightRadius: LengthType;Defined in: ui/core/view/index.d.ts:222
Gets or sets the bottom right border radius of the view.
Ns Property
Inherited from
FrameBase.borderBottomRightRadiusborderBottomWidth
borderBottomWidth: LengthType;Defined in: ui/core/view/index.d.ts:187
Gets or sets the bottom border width of the view.
Ns Property
Inherited from
FrameBase.borderBottomWidthborderColor
borderColor: string | Color;Defined in: ui/core/view/index.d.ts:131
Gets or sets the border color of the view.
Ns Property
Inherited from
FrameBase.borderColorborderLeftColor
borderLeftColor: Color;Defined in: ui/core/view/index.d.ts:159
Gets or sets the left border color of the view.
Ns Property
Inherited from
FrameBase.borderLeftColorborderLeftWidth
borderLeftWidth: LengthType;Defined in: ui/core/view/index.d.ts:194
Gets or sets the left border width of the view.
Ns Property
Inherited from
FrameBase.borderLeftWidthborderRadius
borderRadius:
| string
| number
| LengthDipUnit
| LengthPxUnit;Defined in: ui/core/view/index.d.ts:201
Gets or sets the border radius of the view.
Ns Property
Inherited from
FrameBase.borderRadiusborderRightColor
borderRightColor: Color;Defined in: ui/core/view/index.d.ts:145
Gets or sets the right border color of the view.
Ns Property
Inherited from
FrameBase.borderRightColorborderRightWidth
borderRightWidth: LengthType;Defined in: ui/core/view/index.d.ts:180
Gets or sets the right border width of the view.
Ns Property
Inherited from
FrameBase.borderRightWidthborderTopColor
borderTopColor: Color;Defined in: ui/core/view/index.d.ts:138
Gets or sets the top border color of the view.
Ns Property
Inherited from
FrameBase.borderTopColorborderTopLeftRadius
borderTopLeftRadius: LengthType;Defined in: ui/core/view/index.d.ts:208
Gets or sets the top left border radius of the view.
Ns Property
Inherited from
FrameBase.borderTopLeftRadiusborderTopRightRadius
borderTopRightRadius: LengthType;Defined in: ui/core/view/index.d.ts:215
Gets or sets the top right border radius of the view.
Ns Property
Inherited from
FrameBase.borderTopRightRadiusborderTopWidth
borderTopWidth: LengthType;Defined in: ui/core/view/index.d.ts:173
Gets or sets the top border width of the view.
Ns Property
Inherited from
FrameBase.borderTopWidthborderWidth
borderWidth:
| string
| number
| LengthDipUnit
| LengthPxUnit;Defined in: ui/core/view/index.d.ts:166
Gets or sets the border width of the view.
Ns Property
Inherited from
FrameBase.borderWidthboxShadow
boxShadow: string | ShadowCSSValues[];Defined in: ui/core/view/index.d.ts:396
Gets or sets the box shadow of the view.
Ns Property
Inherited from
FrameBase.boxShadowclassName
className: string;Defined in: ui/core/view-base/index.ts
Gets or sets the CSS class name for this view.
Ns Property
Inherited from
FrameBase.classNamecol
col: number;Defined in: 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
FrameBase.colcolor
color: Color;Defined in: ui/core/view/index.d.ts:236
Gets or sets the color of the view.
Ns Property
Inherited from
FrameBase.colorcolSpan
colSpan: number;Defined in: ui/core/view-base/index.ts
The number of columns for the element to span across.
Ns Property
Inherited from
FrameBase.colSpancolumn
column: number;Defined in: 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
FrameBase.columncolumnSpan
columnSpan: number;Defined in: ui/core/view-base/index.ts
Ns Property
Inherited from
FrameBase.columnSpancssClasses
cssClasses: Set<string>;Defined in: ui/core/view/index.d.ts:685
Inherited from
FrameBase.cssClassescssPseudoClasses
cssPseudoClasses: Set<string>;Defined in: ui/core/view/index.d.ts:686
Inherited from
FrameBase.cssPseudoClassescssType
cssType: string;Defined in: ui/core/view/index.d.ts:667
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
FrameBase.cssTypecurrentEntry
currentEntry: NavigationEntry;Defined in: ui/frame/index.d.ts:133
Gets the NavigationEntry instance the Frame is currently navigated to.
Overrides
FrameBase.currentEntrycurrentPage
currentPage: Page;Defined in: ui/frame/index.d.ts:127
Gets the Page instance the Frame is currently navigated to.
Overrides
FrameBase.currentPagedefaultPage?
optional defaultPage?: string;Defined in: ui/frame/index.d.ts:42
Ns Property
defaultVisualState
defaultVisualState: string;Defined in: ui/core/view-base/index.ts
Default visual state, defaults to 'normal'
Ns Property
Inherited from
FrameBase.defaultVisualStatedirection
direction: LayoutDirectionType;Defined in: ui/core/view/index.d.ts:403
Gets or sets the layout direction of the view.
Ns Property
Inherited from
FrameBase.directiondock
dock: "left" | "right" | "top" | "bottom";Defined in: ui/core/view-base/index.ts
Dock position of the view within its parent.
Ns Property
Inherited from
FrameBase.dockdomNode
domNode: DOMNode;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.domNodeeffectiveBorderBottomWidth
effectiveBorderBottomWidth: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveBorderBottomWidtheffectiveBorderLeftWidth
effectiveBorderLeftWidth: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveBorderLeftWidtheffectiveBorderRightWidth
effectiveBorderRightWidth: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveBorderRightWidtheffectiveBorderTopWidth
effectiveBorderTopWidth: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveBorderTopWidtheffectiveHeight
effectiveHeight: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveHeighteffectiveLeft
effectiveLeft: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveLefteffectiveMarginBottom
effectiveMarginBottom: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveMarginBottomeffectiveMarginLeft
effectiveMarginLeft: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveMarginLefteffectiveMarginRight
effectiveMarginRight: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveMarginRighteffectiveMarginTop
effectiveMarginTop: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveMarginTopeffectiveMinHeight
effectiveMinHeight: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveMinHeighteffectiveMinWidth
effectiveMinWidth: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveMinWidtheffectiveTop
effectiveTop: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveTopeffectiveWidth
effectiveWidth: number;Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.effectiveWidthflex
flex: Flex;Defined in: ui/core/view/index.d.ts:578
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
FrameBase.flexflexFlow
flexFlow: FlexFlow;Defined in: ui/core/view/index.d.ts:573
The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior.
Ns Property
Inherited from
FrameBase.flexFlowflexGrow
flexGrow: number;Defined in: 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
FrameBase.flexGrowflexShrink
flexShrink: number;Defined in: 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
FrameBase.flexShrinkflexWrapBefore
flexWrapBefore: boolean;Defined in: ui/core/view-base/index.ts
When true, forces the item to wrap onto a new line.
Ns Property
Inherited from
FrameBase.flexWrapBeforeheight
height: PercentLengthType;Defined in: ui/core/view/index.d.ts:431
Gets or sets the desired height of the view.
Ns Property
Inherited from
FrameBase.heighthidden
hidden: boolean;Defined in: ui/core/view-base/index.ts
Gets or sets the visual state of the view.
Ns Property
Inherited from
FrameBase.hiddenhorizontalAlignment
horizontalAlignment: HorizontalAlignmentType;Defined in: ui/core/view/index.d.ts:473
Gets or sets the alignment of this view within its parent along the Horizontal axis.
Ns Property
Inherited from
FrameBase.horizontalAlignmentid
id: string;Defined in: ui/core/view-base/index.ts
Gets or sets the id for this view.
Ns Property
Inherited from
FrameBase.idignoreTouchAnimation
ignoreTouchAnimation: boolean;Defined in: ui/core/view/index.d.ts:647
Ns Property
Inherited from
FrameBase.ignoreTouchAnimationios
ios: iOSFrame;Defined in: ui/frame/index.d.ts:165
Gets the iOSFrame object that represents the iOS-specific APIs for this Frame. Valid when running on iOS.
Overrides
FrameBase.iosiosAccessibilityAdjustsFontSize
iosAccessibilityAdjustsFontSize: boolean;Defined in: ui/core/view/index.d.ts:329
Defines whether accessibility font scale should affect font size.
Ns Property
Inherited from
FrameBase.iosAccessibilityAdjustsFontSizeiosAccessibilityMaxFontScale
iosAccessibilityMaxFontScale: number;Defined in: ui/core/view/index.d.ts:343
Gets or sets the maximum accessibility font scale.
Ns Property
Inherited from
FrameBase.iosAccessibilityMaxFontScaleiosAccessibilityMinFontScale
iosAccessibilityMinFontScale: number;Defined in: ui/core/view/index.d.ts:336
Gets or sets the minimum accessibility font scale.
Ns Property
Inherited from
FrameBase.iosAccessibilityMinFontScaleiosGlassEffect
iosGlassEffect: GlassEffectType;Defined in: ui/core/view/index.d.ts:634
Set the iOS liquid glass effect style on the view.
Ns Property
Inherited from
FrameBase.iosGlassEffectiosIgnoreSafeArea
iosIgnoreSafeArea: boolean;Defined in: ui/core/view/index.d.ts:613
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
FrameBase.iosIgnoreSafeAreaiosNavigationBarClass?
optional iosNavigationBarClass?: any;Defined in: ui/frame/index.d.ts:172
Specify a custom UINavigationBar class (iOS only)
Ns Property
iosOverflowSafeArea
iosOverflowSafeArea: boolean;Defined in: ui/core/view/index.d.ts:1130
Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true
Ns Property
Inherited from
FrameBase.iosOverflowSafeAreaiosOverflowSafeAreaEnabled
iosOverflowSafeAreaEnabled: boolean;Defined in: ui/core/view/index.d.ts:606
Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true
Ns Property
Inherited from
FrameBase.iosOverflowSafeAreaEnablediosToolbarClass?
optional iosToolbarClass?: any;Defined in: ui/frame/index.d.ts:178
Specify a custom UIToolbar class (iOS only)
Ns Property
isCollapsed
isCollapsed: any;Defined in: ui/core/view-base/index.ts
Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property
Inherited from
FrameBase.isCollapsedisEnabled
isEnabled: boolean;Defined in: ui/core/view/index.d.ts:585
Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view.
Ns Property
Inherited from
FrameBase.isEnabledisLayoutValid
isLayoutValid: boolean;Defined in: ui/core/view/index.d.ts:656
Gets if layout is valid. This is a read-only property.
Inherited from
FrameBase.isLayoutValidisUserInteractionEnabled
isUserInteractionEnabled: boolean;Defined in: ui/core/view/index.d.ts:592
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
FrameBase.isUserInteractionEnabledleft
left: LengthType;Defined in: 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
FrameBase.leftmargin
margin:
| string
| number
| LengthDipUnit
| LengthPxUnit
| LengthPercentUnit;Defined in: ui/core/view/index.d.ts:438
Gets or sets margin style property.
Ns Property
Inherited from
FrameBase.marginmarginBottom
marginBottom: PercentLengthType;Defined in: ui/core/view/index.d.ts:466
Specifies extra space on the bottom side of this view.
Ns Property
Inherited from
FrameBase.marginBottommarginLeft
marginLeft: PercentLengthType;Defined in: ui/core/view/index.d.ts:445
Specifies extra space on the left side of this view.
Ns Property
Inherited from
FrameBase.marginLeftmarginRight
marginRight: PercentLengthType;Defined in: ui/core/view/index.d.ts:459
Specifies extra space on the right side of this view.
Ns Property
Inherited from
FrameBase.marginRightmarginTop
marginTop: PercentLengthType;Defined in: ui/core/view/index.d.ts:452
Specifies extra space on the top side of this view.
Ns Property
Inherited from
FrameBase.marginTopminHeight
minHeight: LengthType;Defined in: ui/core/view/index.d.ts:417
Gets or sets the minimum height the view may grow to.
Ns Property
Inherited from
FrameBase.minHeightminWidth
minWidth: LengthType;Defined in: ui/core/view/index.d.ts:410
Gets or sets the minimum width the view may grow to.
Ns Property
Inherited from
FrameBase.minWidthmIsRootView
mIsRootView: boolean;Defined in: ui/core/view-base/index.ts
if _setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that _addViewToNativeVisualTree is not called in _setupAsRootView
Inherited from
FrameBase.mIsRootViewmodal
modal: View;Defined in: ui/core/view/index.d.ts:848
Returns the current modal view that this page is showing (is parent of), if any.
Inherited from
FrameBase.modalnativeBackgroundState?
optional nativeBackgroundState?: "unset" | "invalid" | "drawn";Defined in: ui/core/view/index.d.ts:661
Native background states. This is a read-only property.
Inherited from
FrameBase.nativeBackgroundStatenativeViewProtected
nativeViewProtected: any;Defined in: ui/core/view-base/index.ts
read-only. If you want to set out-of-band the nativeView use the setNativeView method.
Inherited from
FrameBase.nativeViewProtectedopacity
opacity: number;Defined in: ui/core/view/index.d.ts:494
Gets or sets the opacity style property.
Ns Property
Inherited from
FrameBase.opacityorder
order: number;Defined in: 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
FrameBase.orderoriginX
originX: number;Defined in: ui/core/view/index.d.ts:560
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
FrameBase.originXoriginY
originY: number;Defined in: ui/core/view/index.d.ts:567
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
FrameBase.originYparent
parent: ViewBase;Defined in: ui/core/view-base/index.ts
Gets the parent view. This property is read-only.
Inherited from
FrameBase.parentperspective
perspective: number;Defined in: ui/core/view/index.d.ts:523
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
FrameBase.perspectiverecycleNativeView
recycleNativeView: "auto" | "always" | "never";Defined in: ui/core/view-base/index.ts
Inherited from
FrameBase.recycleNativeViewreusable
reusable: boolean;Defined in: 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
FrameBase.reusablerotate
rotate: number;Defined in: ui/core/view/index.d.ts:501
Gets or sets the rotate affine transform of the view along the Z axis.
Ns Property
Inherited from
FrameBase.rotaterotateX
rotateX: number;Defined in: ui/core/view/index.d.ts:508
Gets or sets the rotate affine transform of the view along the X axis.
Ns Property
Inherited from
FrameBase.rotateXrotateY
rotateY: number;Defined in: ui/core/view/index.d.ts:515
Gets or sets the rotate affine transform of the view along the Y axis.
Ns Property
Inherited from
FrameBase.rotateYrow
row: number;Defined in: 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
FrameBase.rowrowSpan
rowSpan: number;Defined in: ui/core/view-base/index.ts
The number of rows for the element to span across.
Ns Property
Inherited from
FrameBase.rowSpanscaleX
scaleX: number;Defined in: ui/core/view/index.d.ts:544
Gets or sets the scaleX affine transform of the view.
Ns Property
Inherited from
FrameBase.scaleXscaleY
scaleY: number;Defined in: ui/core/view/index.d.ts:551
Gets or sets the scaleY affine transform of the view.
Ns Property
Inherited from
FrameBase.scaleYsharedTransitionIgnore
sharedTransitionIgnore: boolean;Defined in: ui/core/view-base/index.ts
Opt out of shared transition under different binding conditions
Ns Property
Inherited from
FrameBase.sharedTransitionIgnoresharedTransitionTag
sharedTransitionTag: string;Defined in: ui/core/view-base/index.ts
Gets or sets the shared transition tag for animated view transitions
Ns Property
Inherited from
FrameBase.sharedTransitionTagstatusBarStyle
statusBarStyle: "dark" | "light";Defined in: ui/core/view/index.d.ts:683
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
UIViewControllerBasedStatusBarAppearanceIt defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: <key>UIViewControllerBasedStatusBarAppearance</key> <true/>
False value will make this property have no effect.
Ns Property
Inherited from
FrameBase.statusBarStyletestID
testID: string;Defined in: ui/core/view/index.d.ts:639
Ns Property
Inherited from
FrameBase.testIDtop
top: LengthType;Defined in: 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
FrameBase.toptouchAnimation
touchAnimation:
| boolean
| TouchAnimationOptions;Defined in: ui/core/view/index.d.ts:643
Ns Property
Inherited from
FrameBase.touchAnimationtouchDelay
touchDelay: number;Defined in: ui/core/view/index.d.ts:651
Ns Property
Inherited from
FrameBase.touchDelaytransition
transition: NavigationTransition;Defined in: ui/frame/index.d.ts:145
Gets or sets the default navigation transition for this frame.
Overrides
FrameBase.transitiontransitionId
transitionId: number;Defined in: ui/core/view/view-common.ts
Active transition instance id for tracking state
Inherited from
FrameBase.transitionIdtranslateX
translateX: number;Defined in: ui/core/view/index.d.ts:530
Gets or sets the translateX affine transform of the view in device independent pixels.
Ns Property
Inherited from
FrameBase.translateXtranslateY
translateY: number;Defined in: ui/core/view/index.d.ts:537
Gets or sets the translateY affine transform of the view in device independent pixels.
Ns Property
Inherited from
FrameBase.translateYverticalAlignment
verticalAlignment: VerticalAlignmentType;Defined in: ui/core/view/index.d.ts:480
Gets or sets the alignment of this view within its parent along the Vertical axis.
Ns Property
Inherited from
FrameBase.verticalAlignmentviewController
viewController: any;Defined in: ui/core/view-base/index.ts
returns the native UIViewController.
Inherited from
FrameBase.viewControllervisibility
visibility: VisibilityType;Defined in: ui/core/view/index.d.ts:487
Gets or sets the visibility of the view.
Ns Property
Inherited from
FrameBase.visibilityvisionHoverStyle
visionHoverStyle: string | VisionHoverOptions;Defined in: ui/core/view/index.d.ts:627
visionOS only
Ns Property
Inherited from
FrameBase.visionHoverStylevisionIgnoreHoverStyle
visionIgnoreHoverStyle: boolean;Defined in: ui/core/view/index.d.ts:620
visionOS only
Ns Property
Inherited from
FrameBase.visionIgnoreHoverStylewidth
width: PercentLengthType;Defined in: ui/core/view/index.d.ts:424
Gets or sets the desired width of the view.
Ns Property
Inherited from
FrameBase.widthaccessibilityBlurEvent
static accessibilityBlurEvent: string;Defined in: ui/core/view/index.d.ts:79
String value used when hooking to accessibilityBlur event.
Ns Event
accessibilityBlur
Inherited from
FrameBase.accessibilityBlurEventaccessibilityFocusChangedEvent
static accessibilityFocusChangedEvent: string;Defined in: ui/core/view/index.d.ts:93
String value used when hooking to accessibilityFocusChanged event.
Ns Event
accessibilityFocusChanged
Inherited from
FrameBase.accessibilityFocusChangedEventaccessibilityFocusEvent
static accessibilityFocusEvent: string;Defined in: ui/core/view/index.d.ts:86
String value used when hooking to accessibilityFocus event.
Ns Event
accessibilityFocus
Inherited from
FrameBase.accessibilityFocusEventaccessibilityPerformEscapeEvent
static accessibilityPerformEscapeEvent: string;Defined in: ui/core/view/view-common.ts
Inherited from
FrameBase.accessibilityPerformEscapeEventandroidOptionSelectedEvent
static androidOptionSelectedEvent: string;Defined in: ui/frame/index.d.ts:22
String value used when hooking to OptionSelected event.
Ns Event
optionSelected
androidOverflowInsetEvent
static androidOverflowInsetEvent: string;Defined in: ui/core/view/index.d.ts:100
String value used when hooking to androidOverflowInset event.
Ns Event
androidOverflowInset
Inherited from
FrameBase.androidOverflowInsetEventcreatedEvent
static createdEvent: string;Defined in: ui/core/view-base/index.ts
String value used when hooking to creation event
Ns Event
created
Inherited from
FrameBase.createdEventdefaultAnimatedNavigation
static defaultAnimatedNavigation: boolean;Defined in: ui/frame/index.d.ts:150
Gets or sets if navigation transitions should be animated globally.
Overrides
FrameBase.defaultAnimatedNavigationdefaultTransition
static defaultTransition: NavigationTransition;Defined in: ui/frame/index.d.ts:155
Gets or sets the default NavigationTransition for all frames across the app.
Overrides
FrameBase.defaultTransitiondisposeNativeViewEvent
static disposeNativeViewEvent: string;Defined in: ui/core/view-base/index.ts
String value used when hooking to disposeNativeView event
Ns Event
disposeNativeView
Inherited from
FrameBase.disposeNativeViewEventlayoutChangedEvent
static layoutChangedEvent: string;Defined in: ui/core/view/index.d.ts:59
String value used when hooking to layoutChanged event.
Ns Event
layoutChanged
Inherited from
FrameBase.layoutChangedEventloadedEvent
static loadedEvent: string;Defined in: ui/core/view-base/index.ts
String value used when hooking to loaded event.
Ns Event
loaded
Inherited from
FrameBase.loadedEventnavigatedToEvent
static navigatedToEvent: string;Defined in: ui/frame/index.d.ts:36
String value used when hooking to navigatedTo event.
Ns Event
navigatedTo
Overrides
FrameBase.navigatedToEventnavigatingToEvent
static navigatingToEvent: string;Defined in: ui/frame/index.d.ts:29
String value used when hooking to navigatingTo event.
Ns Event
navigatingTo
Overrides
FrameBase.navigatingToEventpropertyChangeEvent
static propertyChangeEvent: string;Defined in: data/observable/index.ts
String value used when hooking to propertyChange event.
Ns Event
propertyChange
Inherited from
FrameBase.propertyChangeEventshowingModallyEvent
static showingModallyEvent: string;Defined in: ui/core/view/index.d.ts:65
String value used when hooking to showingModally event.
Ns Event
showingModally
Inherited from
FrameBase.showingModallyEventshownModallyEvent
static shownModallyEvent: string;Defined in: ui/core/view/index.d.ts:72
String value used when hooking to shownModally event.
Ns Event
shownModally
Inherited from
FrameBase.shownModallyEventunloadedEvent
static unloadedEvent: string;Defined in: ui/core/view-base/index.ts
String value used when hooking to unloaded event.
Ns Event
unloaded
Inherited from
FrameBase.unloadedEventAccessors
_childrenCount
Get Signature
get _childrenCount(): number;Defined in: ui/frame/frame-common.ts
Returns
number
Inherited from
FrameBase._childrenCountbackgroundPosition
Get Signature
get backgroundPosition(): string;Defined in: ui/core/view/view-common.ts
Returns
string
Set Signature
set backgroundPosition(value: string): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
void
Inherited from
FrameBase.backgroundPositionbackgroundRepeat
Get Signature
get backgroundRepeat(): BackgroundRepeatType;Defined in: ui/core/view/view-common.ts
Returns
Set Signature
set backgroundRepeat(value: BackgroundRepeatType): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
value | BackgroundRepeatType |
Returns
void
Inherited from
FrameBase.backgroundRepeatbackgroundSize
Get Signature
get backgroundSize(): string;Defined in: ui/core/view/view-common.ts
Returns
string
Set Signature
set backgroundSize(value: string): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
void
Inherited from
FrameBase.backgroundSizeclass
Get Signature
get class(): string;Defined in: ui/core/view-base/index.ts
Returns
string
Set Signature
set class(v: string): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
v | string |
Returns
void
Inherited from
FrameBase.classeffectivePaddingBottom
Get Signature
get effectivePaddingBottom(): number;Defined in: ui/core/view-base/index.ts
Returns
number
Set Signature
set effectivePaddingBottom(v: number): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
v | number |
Returns
void
Inherited from
FrameBase.effectivePaddingBottomeffectivePaddingLeft
Get Signature
get effectivePaddingLeft(): number;Defined in: ui/core/view-base/index.ts
Returns
number
Set Signature
set effectivePaddingLeft(v: number): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
v | number |
Returns
void
Inherited from
FrameBase.effectivePaddingLefteffectivePaddingRight
Get Signature
get effectivePaddingRight(): number;Defined in: ui/core/view-base/index.ts
Returns
number
Set Signature
set effectivePaddingRight(v: number): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
v | number |
Returns
void
Inherited from
FrameBase.effectivePaddingRighteffectivePaddingTop
Get Signature
get effectivePaddingTop(): number;Defined in: ui/core/view-base/index.ts
Returns
number
Set Signature
set effectivePaddingTop(v: number): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
v | number |
Returns
void
Inherited from
FrameBase.effectivePaddingTopisLoaded
Get Signature
get isLoaded(): boolean;Defined in: ui/core/view-base/index.ts
Returns
boolean
Inherited from
FrameBase.isLoadednativeView
Get Signature
get nativeView(): any;Defined in: ui/core/view-base/index.ts
Returns
any
Set Signature
set nativeView(value: any): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
void
Inherited from
FrameBase.nativeViewpage
Get Signature
get page(): Page;Defined in: ui/core/view-base/index.ts
Gets owner page. This is a read-only property.
Returns
Inherited from
FrameBase.pageparentNode
Get Signature
get parentNode(): ViewBase;Defined in: ui/core/view-base/index.ts
Gets the template parent or the native parent. Sets the template parent.
Returns
Set Signature
set parentNode(node: ViewBase): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
node | ViewBase |
Returns
void
Inherited from
FrameBase.parentNodestyle
Get Signature
get style(): Style;Defined in: ui/core/view-base/index.ts
Gets the style object associated to this view.
Returns
Set Signature
set style(inlineStyle: Style): void;Defined in: ui/core/view-base/index.ts
Ns Property
Parameters
| Parameter | Type |
|---|---|
inlineStyle | Style |
Returns
void
Inherited from
FrameBase.styletextTransform
Get Signature
get textTransform(): TextTransformType;Defined in: ui/core/view/view-common.ts
Returns
Set Signature
set textTransform(value: TextTransformType): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
value | TextTransformType |
Returns
void
Inherited from
FrameBase.textTransformtypeName
Get Signature
get typeName(): string;Defined in: 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
FrameBase.typeNamevisualState
Get Signature
get visualState(): string;Defined in: ui/core/view-base/index.ts
Deprecated
Returns
string
Inherited from
FrameBase.visualStateMethods
_addChildFromBuilder()
_addChildFromBuilder(name: string, value: any): void;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
name | string |
value | any |
Returns
void
Inherited from
FrameBase._addChildFromBuilder_addView()
_addView(view: ViewBase, atIndex?: number): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
view | ViewBase |
atIndex? | number |
Returns
void
Inherited from
FrameBase._addView_addViewCore()
_addViewCore(view: ViewBase, atIndex?: number): void;Defined in: 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
Inherited from
FrameBase._addViewCore_addViewToNativeVisualTree()
_addViewToNativeVisualTree(child: View): boolean;Defined in: 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 |
Returns
boolean
Inherited from
FrameBase._addViewToNativeVisualTree_applyGlassEffect()
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
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 | 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) => number; } | Configuration options for different glass effect behaviors |
options.effectType | "glass" | "container" | Type of effect to create: 'glass' |
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) => number | Custom function to convert variant to UIGlassEffectStyle |
Returns
any
Inherited from
FrameBase._applyGlassEffect_applyXmlAttribute()
_applyXmlAttribute(attribute: string, value: string): boolean;Defined in: 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
FrameBase._applyXmlAttribute_backstackEntryTrace()
_backstackEntryTrace(b: BackstackEntry): string;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
b | BackstackEntry |
Returns
string
Inherited from
FrameBase._backstackEntryTrace_batchUpdate()
_batchUpdate<T>(callback: () => T): T;Defined in: 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
FrameBase._batchUpdate_childIndexToNativeChildIndex()
_childIndexToNativeChildIndex(index?: number): number;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
index? | number |
Returns
number
Inherited from
FrameBase._childIndexToNativeChildIndex_closeAllModalViewsInternal()
_closeAllModalViewsInternal(): boolean;Defined in: ui/core/view/index.d.ts:924
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
FrameBase._closeAllModalViewsInternal_createPropertyChangeData()
_createPropertyChangeData(
propertyName: string,
value: any,
oldValue?: any): PropertyChangeData;Defined in: 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
Inherited from
FrameBase._createPropertyChangeData_dialogClosed()
_dialogClosed(): void;Defined in: ui/frame/frame-common.ts
Method is intended to be overridden by inheritors and used as "protected"
Returns
void
Inherited from
FrameBase._dialogClosed_disposeBackstackEntry()
protected _disposeBackstackEntry(entry: BackstackEntry): void;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
entry | BackstackEntry |
Returns
void
Inherited from
FrameBase._disposeBackstackEntry_eachLayoutView()
_eachLayoutView(callback: (View: any) => void): void;Defined in: ui/core/view/index.d.ts:932
Parameters
| Parameter | Type |
|---|---|
callback | (View: any) => void |
Returns
void
Inherited from
FrameBase._eachLayoutView_emit()
_emit(eventName: string): void;Defined in: data/observable/index.ts
Parameters
| Parameter | Type |
|---|---|
eventName | string |
Returns
void
Inherited from
FrameBase._emit_getNativeViewsCount()
_getNativeViewsCount(): number;Defined in: ui/core/view/index.d.ts:918
Returns
number
Inherited from
FrameBase._getNativeViewsCount_getRootModalViews()
_getRootModalViews(): ViewBase[];Defined in: ui/core/view/index.d.ts:930
Internal method: Gets all modal views of the current view.
Returns
ViewBase[]
Inherited from
FrameBase._getRootModalViews_getValue()
_getValue(property: any): never;Defined in: ui/core/view/index.d.ts:1113
Obsolete: There is a new property system that does not rely on _getValue.
Parameters
| Parameter | Type |
|---|---|
property | any |
Returns
never
Inherited from
FrameBase._getValue_goBackCore()
_goBackCore(backstackEntry: BackstackEntry): void;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
backstackEntry | BackstackEntry |
Returns
void
Inherited from
FrameBase._goBackCore_handleLivesync()
_handleLivesync(context?: ModuleContext): boolean;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
context? | ModuleContext |
Returns
boolean
Inherited from
FrameBase._handleLivesync_hasAncestorView()
_hasAncestorView(ancestorView: View): boolean;Defined in: ui/core/view/index.d.ts:1107
Checks whether the current view has specific view for an ancestor.
Parameters
| Parameter | Type |
|---|---|
ancestorView | View |
Returns
boolean
Inherited from
FrameBase._hasAncestorView_hideNativeModalView()
protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
parent | ViewCommon |
whenClosedCallback | () => void |
Returns
void
Inherited from
FrameBase._hideNativeModalView_inheritStyles()
_inheritStyles(view: ViewBase): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
view | ViewBase |
Returns
void
Inherited from
FrameBase._inheritStyles_inheritStyleScope()
_inheritStyleScope(styleScope: StyleScope): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
styleScope | StyleScope |
Returns
void
Inherited from
FrameBase._inheritStyleScope_layoutParent()
_layoutParent(): void;Defined in: ui/core/view-base/index.ts
Returns
void
Inherited from
FrameBase._layoutParent_navigateCore()
_navigateCore(backstackEntry: BackstackEntry): void;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
backstackEntry | BackstackEntry |
Returns
void
Inherited from
FrameBase._navigateCore_observe()
protected _observe(
type: GestureTypes,
callback: (args: GestureEventData) => void,
thisArg?: any): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
type | GestureTypes |
callback | (args: GestureEventData) => void |
thisArg? | any |
Returns
void
Inherited from
FrameBase._observe_onAttachedToWindow()
_onAttachedToWindow(): void;Defined in: ui/core/view/index.d.ts:1097
Called in android when native view is attached to window.
Returns
void
Inherited from
FrameBase._onAttachedToWindow_onDetachedFromWindow()
_onDetachedFromWindow(): void;Defined in: ui/core/view/index.d.ts:1102
Called in android when native view is dettached from window.
Returns
void
Inherited from
FrameBase._onDetachedFromWindow_onNavigatingTo()
_onNavigatingTo(backstackEntry: BackstackEntry, isBack: boolean): void;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
backstackEntry | BackstackEntry |
isBack | boolean |
Returns
void
Inherited from
FrameBase._onNavigatingTo_onRootViewReset()
_onRootViewReset(): void;Defined in: ui/frame/frame-common.ts
Method is intended to be overridden by inheritors and used as "protected"
Returns
void
Inherited from
FrameBase._onRootViewReset_onSizeChanged()?
optional _onSizeChanged(): void;Defined in: ui/core/view/index.d.ts:937
iOS Only Internal method used to update various view details like background rerendering, border, etc.
Returns
void
Inherited from
FrameBase._onSizeChanged_parentChanged()
_parentChanged(oldParent: ViewBase): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
oldParent | ViewBase |
Returns
void
Inherited from
FrameBase._parentChanged_popFromFrameStack()
_popFromFrameStack(): void;Defined in: ui/frame/frame-common.ts
Returns
void
Inherited from
FrameBase._popFromFrameStack_printFrameBackStack()
_printFrameBackStack(): void;Defined in: ui/frame/frame-common.ts
Returns
void
Inherited from
FrameBase._printFrameBackStack_processNextNavigationEntry()
protected _processNextNavigationEntry(): void;Defined in: ui/frame/frame-common.ts
Returns
void
Inherited from
FrameBase._processNextNavigationEntry_raiseLayoutChangedEvent()
protected _raiseLayoutChangedEvent(): void;Defined in: ui/core/view/view-common.ts
Returns
void
Inherited from
FrameBase._raiseLayoutChangedEvent_raiseShowingModallyEvent()
protected _raiseShowingModallyEvent(): void;Defined in: ui/core/view/view-common.ts
Returns
void
Inherited from
FrameBase._raiseShowingModallyEvent_raiseShownModallyEvent()
protected _raiseShownModallyEvent(): void;Defined in: ui/core/view/view-common.ts
Returns
void
Inherited from
FrameBase._raiseShownModallyEvent_removeEntry()
_removeEntry(removed: BackstackEntry): void;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
removed | BackstackEntry |
Returns
void
Inherited from
FrameBase._removeEntry_removeView()
_removeView(view: ViewBase): void;Defined in: 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
Inherited from
FrameBase._removeView_removeViewCore()
_removeViewCore(view: ViewBase): void;Defined in: 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
Inherited from
FrameBase._removeViewCore_removeViewFromNativeVisualTree()
_removeViewFromNativeVisualTree(child: View): void;Defined in: ui/frame/frame-common.ts
Method is intended to be overridden by inheritors and used as "protected"
Parameters
| Parameter | Type |
|---|---|
child | View |
Returns
void
Inherited from
FrameBase._removeViewFromNativeVisualTree_resumeNativeUpdates()
_resumeNativeUpdates(type: SuspendType): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
type | SuspendType |
Returns
void
Inherited from
FrameBase._resumeNativeUpdates_setDefaultPaddings()
_setDefaultPaddings(insets: any): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
insets | any |
Returns
void
Inherited from
FrameBase._setDefaultPaddings_setupAsRootView()
_setupAsRootView(context: any): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
context | any |
Returns
void
Inherited from
FrameBase._setupAsRootView_setupUI()
_setupUI(
context: any,
atIndex?: number,
parentIsLoaded?: boolean): void;Defined in: 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
FrameBase._setupUI_setValue()
_setValue(property: any, value: any): never;Defined in: ui/core/view/index.d.ts:1118
Obsolete: There is a new property system that does not rely on _setValue.
Parameters
| Parameter | Type |
|---|---|
property | any |
value | any |
Returns
never
Inherited from
FrameBase._setValue_shouldDelayLayout()
_shouldDelayLayout(): boolean;Defined in: 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
FrameBase._shouldDelayLayout_showNativeModalView()
protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
parent | ViewCommon |
options | ShowModalOptions |
Returns
void
Inherited from
FrameBase._showNativeModalView_suspendNativeUpdates()
_suspendNativeUpdates(type: SuspendType): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
type | SuspendType |
Returns
void
Inherited from
FrameBase._suspendNativeUpdates_tearDownUI()
_tearDownUI(force?: boolean): void;Defined in: 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
FrameBase._tearDownUI_updateStyleScope()
_updateStyleScope(
cssFileName?: string,
cssString?: string,
css?: string): void;Defined in: ui/core/view/index.d.ts:1092
Updates styleScope or create new styleScope.
Parameters
| Parameter | Type | Description |
|---|---|---|
cssFileName? | string | - |
cssString? | string | - |
css? | string | - |
Returns
void
Inherited from
FrameBase._updateStyleScopeaccessibilityAnnouncement()
accessibilityAnnouncement(msg?: string): void;Defined in: ui/core/view/index.d.ts:972
Make an announcement to the screen reader.
Parameters
| Parameter | Type |
|---|---|
msg? | string |
Returns
void
Inherited from
FrameBase.accessibilityAnnouncementaccessibilityScreenChanged()
accessibilityScreenChanged(): void;Defined in: ui/core/view/index.d.ts:977
Announce screen changed
Returns
void
Inherited from
FrameBase.accessibilityScreenChangedaddEventListener()
addEventListener(
eventNames: string,
callback: (data: EventData) => void,
thisArg?: any,
once?: boolean): void;Defined in: ui/core/view/view-common.ts
Adds a listener for the specified event name.
Parameters
| Parameter | Type | Description |
|---|---|---|
eventNames | string | - |
callback | (data: EventData) => 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
FrameBase.addEventListeneraddPseudoClass()
protected addPseudoClass(name: string): void;Defined in: 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
FrameBase.addPseudoClassanimate()
animate(options: AnimationDefinition): AnimationPromise;Defined in: ui/core/view/index.d.ts:853
Animates one or more properties of the view based on the supplied options.
Parameters
| Parameter | Type |
|---|---|
options | AnimationDefinition |
Returns
Inherited from
FrameBase.animatebind()
bind(options: BindingOptions, source?: Object): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
options | BindingOptions |
source? | Object |
Returns
void
Inherited from
FrameBase.bindcallLoaded()
callLoaded(): void;Defined in: ui/core/view-base/index.ts
Returns
void
Inherited from
FrameBase.callLoadedcallUnloaded()
callUnloaded(): void;Defined in: ui/core/view-base/index.ts
Returns
void
Inherited from
FrameBase.callUnloadedcanGoBack()
canGoBack(): boolean;Defined in: ui/frame/index.d.ts:84
Checks whether the goBack operation is available.
Returns
boolean
Overrides
FrameBase.canGoBackcloseModal()
closeModal(...args: any[]): void;Defined in: 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
FrameBase.closeModalcreateAnimation()
createAnimation(options: AnimationDefinition): Animation;Defined in: ui/core/view/index.d.ts:858
Creates an Animation object based on the supplied options.
Parameters
| Parameter | Type |
|---|---|
options | AnimationDefinition |
Returns
Inherited from
FrameBase.createAnimationcreateNativeView()
createNativeView(): Object;Defined in: ui/core/view-base/index.ts
Creates a native view. Returns either android.view.View or UIView.
Returns
Object
Inherited from
FrameBase.createNativeViewdeletePseudoClass()
protected deletePseudoClass(name: string): void;Defined in: 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
FrameBase.deletePseudoClassdestroyNode()
destroyNode(forceDestroyChildren?: boolean): void;Defined in: 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
FrameBase.destroyNodedisposeNativeView()
disposeNativeView(): void;Defined in: ui/core/view-base/index.ts
Clean up references to the native view.
Returns
void
Inherited from
FrameBase.disposeNativeVieweachChild()
eachChild(callback: (child: ViewBase) => boolean): void;Defined in: ui/core/view/view-common.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
Inherited from
FrameBase.eachChildeachChildView()
eachChildView(callback: (child: View) => boolean): void;Defined in: ui/frame/frame-common.ts
Iterates over children of type View.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | (child: View) => boolean | Called for each child of type View. Iteration stops if this method returns falsy value. |
Returns
void
Inherited from
FrameBase.eachChildViewensureDomNode()
ensureDomNode(): void;Defined in: ui/core/view-base/index.ts
Returns
void
Unstable
Ensures a dom-node for this view.
Inherited from
FrameBase.ensureDomNodefocus()
focus(): boolean;Defined in: ui/core/view/index.d.ts:787
Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus.
Returns
boolean
Inherited from
FrameBase.focusget()
get(name: string): any;Defined in: data/observable/index.ts
Gets the value of the specified property.
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
any
Inherited from
FrameBase.getgetActualSize()
getActualSize(): Size;Defined in: ui/core/view/index.d.ts:883
Returns the actual size of the view in device-independent pixels.
Returns
Inherited from
FrameBase.getActualSizegetClosestWindow()
getClosestWindow(): Window;Defined in: ui/core/view/view-common.ts
(Android only) Gets closest window parent considering modals.
Returns
Window
Inherited from
FrameBase.getClosestWindowgetEffectivePaddingShorthand()
getEffectivePaddingShorthand(): string;Defined in: ui/core/view-base/index.ts
Returns
string
Inherited from
FrameBase.getEffectivePaddingShorthandgetGestureObservers()
getGestureObservers(type: GestureTypes): GesturesObserver[];Defined in: ui/core/view/index.d.ts:789
Parameters
| Parameter | Type |
|---|---|
type | GestureTypes |
Returns
Inherited from
FrameBase.getGestureObserversgetLocationInWindow()
getLocationInWindow(): Point;Defined in: ui/core/view/index.d.ts:868
Returns the location of this view in the window coordinate system.
Returns
Point
Inherited from
FrameBase.getLocationInWindowgetLocationOnScreen()
getLocationOnScreen(): Point;Defined in: ui/core/view/index.d.ts:873
Returns the location of this view in the screen coordinate system.
Returns
Point
Inherited from
FrameBase.getLocationOnScreengetLocationRelativeTo()
getLocationRelativeTo(otherView: View): Point;Defined in: ui/core/view/index.d.ts:878
Returns the location of this view in the otherView's coordinate system.
Parameters
| Parameter | Type |
|---|---|
otherView | View |
Returns
Point
Inherited from
FrameBase.getLocationRelativeTogetMeasuredHeight()
getMeasuredHeight(): number;Defined in: ui/core/view/index.d.ts:715
Returns the raw height component.
Returns
number
Inherited from
FrameBase.getMeasuredHeightgetMeasuredState()
getMeasuredState(): number;Defined in: ui/core/view/index.d.ts:717
Returns
number
Inherited from
FrameBase.getMeasuredStategetMeasuredWidth()
getMeasuredWidth(): number;Defined in: ui/core/view/index.d.ts:710
Returns the raw width component.
Returns
number
Inherited from
FrameBase.getMeasuredWidthgetSafeAreaInsets()
getSafeAreaInsets(): Position;Defined in: ui/core/view/index.d.ts:863
Returns the iOS safe area insets of this view.
Returns
Position
Inherited from
FrameBase.getSafeAreaInsetsgetViewByDomId()
getViewByDomId<T>(domId: number): T;Defined in: 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
Inherited from
FrameBase.getViewByDomIdgetViewById()
getViewById<T>(id: string): T;Defined in: 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
Inherited from
FrameBase.getViewByIdgoBack()
goBack(to?: BackstackEntry): any;Defined in: ui/frame/index.d.ts:79
Navigates to the previous entry (if any) in the back stack.
Parameters
| Parameter | Type | Description |
|---|---|---|
to? | BackstackEntry | The backstack entry to navigate back to. |
Returns
any
Overrides
FrameBase.goBackhasGestureObservers()?
optional hasGestureObservers(): boolean;Defined in: ui/core/view/index.d.ts:942
Android only check if gesture observers are attached
Returns
boolean
Inherited from
FrameBase.hasGestureObservershasListeners()
hasListeners(eventName: string): boolean;Defined in: 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
FrameBase.hasListenersinitNativeView()
initNativeView(): void;Defined in: ui/core/view-base/index.ts
Initializes properties/listeners of the native view.
Returns
void
Inherited from
FrameBase.initNativeViewlayout()
layout(
left: number,
top: number,
right: number,
bottom: number,
setFrame?: boolean): void;Defined in: ui/core/view/index.d.ts:705
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
FrameBase.layoutlayoutNativeView()
layoutNativeView(
left: number,
top: number,
right: number,
bottom: number): void;Defined in: ui/core/view/index.d.ts:750
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
FrameBase.layoutNativeViewloadView()
loadView(view: ViewBase): void;Defined in: ui/core/view-base/index.ts
Load view.
Parameters
| Parameter | Type | Description |
|---|---|---|
view | ViewBase | to load. |
Returns
void
Inherited from
FrameBase.loadViewmeasure()
measure(widthMeasureSpec: number, heightMeasureSpec: number): void;Defined in: ui/core/view/index.d.ts:694
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
FrameBase.measurenavigate()
Call Signature
navigate(pageModuleName: string): any;Defined in: ui/frame/index.d.ts:94
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
FrameBase.navigateCall Signature
navigate(create: () => Page): any;Defined in: ui/frame/index.d.ts:100
Creates a new Page instance using the provided callback and navigates to that Page.
Parameters
| Parameter | Type | Description |
|---|---|---|
create | () => Page | The function to be used to create the new Page instance. |
Returns
any
Overrides
FrameBase.navigateCall Signature
navigate(entry: NavigationEntry): any;Defined in: ui/frame/index.d.ts:109
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 | The NavigationEntry instance. |
Returns
any
Overrides
FrameBase.navigatenotify()
notify<T>(data: T): void;Defined in: 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, "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
FrameBase.notifynotifyPropertyChange()
notifyPropertyChange(
name: string,
value: any,
oldValue?: any): void;Defined in: 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
FrameBase.notifyPropertyChangeoff()
off(
eventName: string,
callback?: (args: EventData) => void,
thisArg?: any): any;Defined in: ui/core/view/index.d.ts:800
Removes the listener(s) for the specified event name.
Parameters
| Parameter | Type | Description |
|---|---|---|
eventName | string | The name of the event. |
callback? | (args: EventData) => 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
FrameBase.offon()
Call Signature
on(
eventName: string,
callback: (args: EventData) => void,
thisArg?: any): void;Defined in: ui/frame/index.d.ts:287
Adds a listener for the specified event name.
Parameters
| Parameter | Type | Description |
|---|---|---|
eventName | string | The name of the event. |
callback | (args: EventData) => 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
FrameBase.onCall Signature
on(
event: "navigatingTo",
callback: (args: NavigationData) => void,
thisArg?: any): void;Defined in: ui/frame/index.d.ts:292
Raised when navigation to the page has started.
Parameters
| Parameter | Type |
|---|---|
event | "navigatingTo" |
callback | (args: NavigationData) => void |
thisArg? | any |
Returns
void
Overrides
FrameBase.onCall Signature
on(
event: "navigatedTo",
callback: (args: NavigationData) => void,
thisArg?: any): void;Defined in: ui/frame/index.d.ts:297
Raised when navigation to the page has finished.
Parameters
| Parameter | Type |
|---|---|
event | "navigatedTo" |
callback | (args: NavigationData) => void |
thisArg? | any |
Returns
void
Overrides
FrameBase.ononBackPressed()
onBackPressed(): boolean;Defined in: ui/core/view/index.d.ts:888
Derived classes can override this method to handle Android back button press.
Returns
boolean
Inherited from
FrameBase.onBackPressedonce()
once(
eventName: string,
callback: (data: EventData) => void,
thisArg?: any): void;Defined in: 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) => 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
FrameBase.onceonLayout()
onLayout(
left: number,
top: number,
right: number,
bottom: number): void;Defined in: ui/core/view/index.d.ts:734
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
FrameBase.onLayoutonLoaded()
onLoaded(): void;Defined in: ui/frame/frame-common.ts
Returns
void
Inherited from
FrameBase.onLoadedonMeasure()
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;Defined in: ui/core/view/index.d.ts:725
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
FrameBase.onMeasureonResumeNativeUpdates()
onResumeNativeUpdates(): void;Defined in: ui/core/view-base/index.ts
Returns
void
Inherited from
FrameBase.onResumeNativeUpdatesonUnloaded()
onUnloaded(): void;Defined in: ui/core/view-base/index.ts
Returns
void
Inherited from
FrameBase.onUnloadedperformGoBack()
performGoBack(navigationContext: NavigationContext): void;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
navigationContext | NavigationContext |
Returns
void
Inherited from
FrameBase.performGoBackremoveEventListener()
removeEventListener(
eventNames: string,
callback?: (data: EventData) => void,
thisArg?: any): void;Defined in: ui/core/view/view-common.ts
Removes listener(s) for the specified event name.
Parameters
| Parameter | Type | Description |
|---|---|---|
eventNames | string | - |
callback? | (data: EventData) => 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
FrameBase.removeEventListenerreplacePage()
replacePage(entry: string | NavigationEntry): void;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
entry | string | NavigationEntry |
Returns
void
Inherited from
FrameBase.replacePagerequestLayout()
requestLayout(): void;Defined in: ui/core/view-base/index.ts
Invalidates the layout of the view and triggers a new layout pass.
Returns
void
Inherited from
FrameBase.requestLayoutresetNativeView()
resetNativeView(): void;Defined in: ui/core/view/view-common.ts
Resets properties/listeners set to the native view.
Returns
void
Inherited from
FrameBase.resetNativeViewsendAccessibilityEvent()
sendAccessibilityEvent(options: AccessibilityEventOptions): void;Defined in: ui/core/view/index.d.ts:967
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
FrameBase.sendAccessibilityEventset()
set(name: string, value: any): void;Defined in: 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
FrameBase.setsetAccessibilityIdentifier()
setAccessibilityIdentifier(view: any, value: string): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
view | any |
value | string |
Returns
void
Inherited from
FrameBase.setAccessibilityIdentifiersetInlineStyle()
setInlineStyle(style: string): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
style | string |
Returns
void
Inherited from
FrameBase.setInlineStylesetMeasuredDimension()
setMeasuredDimension(measuredWidth: number, measuredHeight: number): void;Defined in: ui/core/view/index.d.ts:741
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
FrameBase.setMeasuredDimensionsetNativeView()
setNativeView(value: any): void;Defined in: 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
FrameBase.setNativeViewsetOnTouchListener()?
optional setOnTouchListener(): void;Defined in: ui/core/view/index.d.ts:947
Android only to set the touch listener
Returns
void
Inherited from
FrameBase.setOnTouchListenersetProperty()
setProperty(name: string, value: any): void;Defined in: 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
FrameBase.setPropertyshowModal()
showModal(...args: any[]): View;Defined in: ui/core/view/view-common.ts
Shows the view passed as parameter as a modal view.
Parameters
| Parameter | Type |
|---|---|
...args | any[] |
Returns
Inherited from
FrameBase.showModaltoString()
toString(): string;Defined in: ui/core/view-base/index.ts
Returns a string representation of an object.
Returns
string
Inherited from
FrameBase.toStringunbind()
unbind(property: string): void;Defined in: ui/core/view-base/index.ts
Parameters
| Parameter | Type |
|---|---|
property | string |
Returns
void
Inherited from
FrameBase.unbindunloadView()
unloadView(view: ViewBase): void;Defined in: ui/core/view-base/index.ts
Unload view.
Parameters
| Parameter | Type | Description |
|---|---|---|
view | ViewBase | to unload. |
Returns
void
Inherited from
FrameBase.unloadViewupdateStatusBarStyle()
updateStatusBarStyle(value: "dark" | "light"): void;Defined in: ui/core/view/view-common.ts
Parameters
| Parameter | Type |
|---|---|
value | "dark" | "light" |
Returns
void
Inherited from
FrameBase.updateStatusBarStyle_isEntryBackstackVisible()
static _isEntryBackstackVisible(entry: BackstackEntry): boolean;Defined in: ui/frame/frame-common.ts
Parameters
| Parameter | Type |
|---|---|
entry | BackstackEntry |
Returns
boolean
Inherited from
FrameBase._isEntryBackstackVisibleaddEventListener()
static addEventListener(
eventName: string,
callback: (data: EventData) => void,
thisArg?: any,
once?: boolean): void;Defined in: data/observable/index.ts
Please avoid using the static event-handling APIs as they will be removed in future.
Parameters
| Parameter | Type |
|---|---|
eventName | string |
callback | (data: EventData) => void |
thisArg? | any |
once? | boolean |
Returns
void
Deprecated
Inherited from
FrameBase.addEventListenercombineMeasuredStates()
static combineMeasuredStates(curState: number, newState: any): number;Defined in: ui/core/view/index.d.ts:781
Parameters
| Parameter | Type |
|---|---|
curState | number |
newState | any |
Returns
number
Inherited from
FrameBase.combineMeasuredStatesgetFrameById()
static getFrameById(id: string): Frame;Defined in: ui/frame/index.d.ts:52
Gets a frame by id.
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Frame
Overrides
FrameBase.getFrameByIdgoBack()
static goBack(): any;Defined in: ui/frame/index.d.ts:63
Navigates back using the navigation hierarchy (if any). Updates the Frame stack as needed. This method will start from the topmost Frame and will recursively search for an instance that has the canGoBack operation available.
Returns
any
Overrides
FrameBase.goBacklayoutChild()
static layoutChild(
parent: View,
child: View,
left: number,
top: number,
right: number,
bottom: number): void;Defined in: ui/core/view/index.d.ts:769
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
Inherited from
FrameBase.layoutChildmeasureChild()
static measureChild(
parent: View,
child: View,
widthMeasureSpec: number,
heightMeasureSpec: number): {
measuredHeight: number;
measuredWidth: number;
};Defined in: ui/core/view/index.d.ts:759
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
{
measuredHeight: number;
measuredWidth: number;
}measuredHeight
measuredHeight: number;measuredWidth
measuredWidth: number;Inherited from
FrameBase.measureChildoff()
static off(
eventName: string,
callback?: (data: EventData) => void,
thisArg?: any): void;Defined in: data/observable/index.ts
Please avoid using the static event-handling APIs as they will be removed in future.
Parameters
| Parameter | Type |
|---|---|
eventName | string |
callback? | (data: EventData) => void |
thisArg? | any |
Returns
void
Deprecated
Inherited from
FrameBase.offon()
static on(
eventName: string,
callback: (data: EventData) => void,
thisArg?: any,
once?: boolean): void;Defined in: data/observable/index.ts
Please avoid using the static event-handling APIs as they will be removed in future.
Parameters
| Parameter | Type |
|---|---|
eventName | string |
callback | (data: EventData) => void |
thisArg? | any |
once? | boolean |
Returns
void
Deprecated
Inherited from
FrameBase.ononce()
static once(
eventName: string,
callback: (data: EventData) => void,
thisArg?: any): void;Defined in: data/observable/index.ts
Please avoid using the static event-handling APIs as they will be removed in future.
Parameters
| Parameter | Type |
|---|---|
eventName | string |
callback | (data: EventData) => void |
thisArg? | any |
Returns
void
Deprecated
Inherited from
FrameBase.onceremoveEventListener()
static removeEventListener(
eventName: string,
callback?: (data: EventData) => void,
thisArg?: any): void;Defined in: data/observable/index.ts
Please avoid using the static event-handling APIs as they will be removed in future.
Parameters
| Parameter | Type |
|---|---|
eventName | string |
callback? | (data: EventData) => void |
thisArg? | any |
Returns
void
Deprecated
Inherited from
FrameBase.removeEventListenerresolveSizeAndState()
static resolveSizeAndState(
size: number,
specSize: number,
specMode: number,
childMeasuredState: number): number;Defined in: ui/core/view/index.d.ts:779
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
FrameBase.resolveSizeAndStatetopmost()
static topmost(): Frame;Defined in: ui/frame/index.d.ts:57
Gets the topmost frame in the frames stack. An application will typically has one frame instance. Multiple frames handle nested (hierarchical) navigation scenarios.
Returns
Frame
Overrides
FrameBase.topmost- Previous
- FormattedString
- Next
- GesturesObserver