()
| 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) { |
no outgoing calls
no test coverage detected