MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / onLoaded

Function onLoaded

packages/core/ui/core/view/view-common.ts:193–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191 }
192
193 onLoaded() {
194 if (!this.isLoaded) {
195 const hasTap = this.hasListeners('tap') || this.hasListeners('tapChange') || !!this.getGestureObservers(GestureTypes.tap);
196 const enableTapAnimations = TouchManager.enableGlobalTapAnimations && hasTap;
197 if (!this.ignoreTouchAnimation && (this.touchAnimation || enableTapAnimations)) {
198 TouchManager.addAnimations(this);
199 }
200
201 if (__VISIONOS__) {
202 const enableHoverStyle = TouchManager.enableGlobalHoverWhereTap && hasTap;
203 if (!this.visionIgnoreHoverStyle && (this.visionHoverStyle || enableHoverStyle)) {
204 TouchManager.addHoverStyle(this);
205 }
206 }
207 }
208 super.onLoaded();
209
210 setupAccessibleView(this);
211
212 if (this.statusBarStyle) {
213 // reapply status bar style on load
214 // helps back navigation cases to restore if overridden
215 this.updateStatusBarStyle(this.statusBarStyle);
216 }
217 }
218
219 public _closeAllModalViewsInternal(): boolean {
220 if (_rootModalViews && _rootModalViews.length > 0) {

Callers

nothing calls this directly

Calls 6

setupAccessibleViewFunction · 0.90
addHoverStyleMethod · 0.80
hasListenersMethod · 0.65
addAnimationsMethod · 0.65
onLoadedMethod · 0.45
updateStatusBarStyleMethod · 0.45

Tested by

no test coverage detected