()
| 375 | } |
| 376 | |
| 377 | public getLocationOnScreen(): Point { |
| 378 | if (!this.nativeViewProtected || !this.nativeViewProtected.window) { |
| 379 | return undefined; |
| 380 | } |
| 381 | |
| 382 | const pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null); |
| 383 | const pointOnScreen = this.nativeViewProtected.window.convertPointToWindow(pointInWindow, null); |
| 384 | |
| 385 | return { |
| 386 | x: pointOnScreen.x, |
| 387 | y: pointOnScreen.y, |
| 388 | }; |
| 389 | } |
| 390 | |
| 391 | public getLocationRelativeTo(otherView: View): Point { |
| 392 | if (!this.nativeViewProtected || !this.nativeViewProtected.window || !otherView.nativeViewProtected || !otherView.nativeViewProtected.window || this.nativeViewProtected.window !== otherView.nativeViewProtected.window) { |
no outgoing calls
no test coverage detected