MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / getLocationInWindow

Method getLocationInWindow

packages/core/ui/core/view/index.ios.ts:364–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

362 }
363
364 public getLocationInWindow(): Point {
365 if (!this.nativeViewProtected || !this.nativeViewProtected.window) {
366 return undefined;
367 }
368
369 const pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
370
371 return {
372 x: pointInWindow.x,
373 y: pointInWindow.y,
374 };
375 }
376
377 public getLocationOnScreen(): Point {
378 if (!this.nativeViewProtected || !this.nativeViewProtected.window) {

Callers 4

leftFunction · 0.45
topFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected