1 | import { View } from '..';
|
2 |
|
3 | export class ViewHelper {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | public static measureChild(parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredWidth: number; measuredHeight: number };
|
12 |
|
13 | |
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | public static layoutChild(parent: View, child: View, left: number, top: number, right: number, bottom: number): void;
|
22 |
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | public static resolveSizeAndState(size: number, specSize: number, specMode: number, childMeasuredState: number): number;
|
32 |
|
33 | public static combineMeasuredStates(curState: number, newState): number;
|
34 | }
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | export namespace IOSHelper {
|
40 | |
41 |
|
42 |
|
43 | export const traitCollectionColorAppearanceChangedEvent: string;
|
44 |
|
45 | |
46 |
|
47 |
|
48 |
|
49 | export function getParentWithViewController(view: View): View;
|
50 | export function updateAutoAdjustScrollInsets(controller: any , owner: View): void;
|
51 | export function updateConstraints(controller: any , owner: View): void;
|
52 | export function layoutView(controller: any , owner: View): void;
|
53 | export function getPositionFromFrame(frame: any ): { left; top; right; bottom };
|
54 | export function getFrameFromPosition(position: { left; top; right; bottom }, insets?: { left; top; right; bottom }): any;
|
55 | export function shrinkToSafeArea(view: View, frame: any ): any;
|
56 | export function expandBeyondSafeArea(view: View, frame: any ): any;
|
57 | export class UILayoutViewController {
|
58 | public static initWithOwner(owner: WeakRef<View>): UILayoutViewController;
|
59 | }
|
60 | export class UIAdaptivePresentationControllerDelegateImp {
|
61 | public static initWithOwnerAndCallback(owner: WeakRef<View>, whenClosedCallback: Function): UIAdaptivePresentationControllerDelegateImp;
|
62 | }
|
63 | export class UIPopoverPresentationControllerDelegateImp {
|
64 | public static initWithOwnerAndCallback(owner: WeakRef<View>, whenClosedCallback: Function): UIPopoverPresentationControllerDelegateImp;
|
65 | }
|
66 | }
|