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 AndroidHelper {
|
40 | export function getDrawableColor(drawable: any ): Color;
|
41 | export function setDrawableColor(color: number, drawable: any , blendMode?: any ): void;
|
42 | export function clearDrawableColor(drawable: any ): void;
|
43 | export function getCopyOrDrawable(drawable: any , resources?: any ): any;
|
44 | }
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | export namespace IOSHelper {
|
50 | |
51 |
|
52 |
|
53 | export const traitCollectionColorAppearanceChangedEvent: string;
|
54 |
|
55 | |
56 |
|
57 |
|
58 |
|
59 | export function getParentWithViewController(view: View): View;
|
60 | export function updateAutoAdjustScrollInsets(controller: any , owner: View): void;
|
61 | export function updateConstraints(controller: any , owner: View): void;
|
62 | export function layoutView(controller: any , owner: View): void;
|
63 | export function getPositionFromFrame(frame: any ): { left; top; right; bottom };
|
64 | export function getFrameFromPosition(position: { left; top; right; bottom }, insets?: { left; top; right; bottom }): any;
|
65 | export function shrinkToSafeArea(view: View, frame: any ): any;
|
66 | export function expandBeyondSafeArea(view: View, frame: any ): any;
|
67 | export class UILayoutViewController {
|
68 | public static initWithOwner(owner: WeakRef<View>): UILayoutViewController;
|
69 | }
|
70 | export class UIAdaptivePresentationControllerDelegateImp {
|
71 | public static initWithOwnerAndCallback(owner: WeakRef<View>, whenClosedCallback: Function): UIAdaptivePresentationControllerDelegateImp;
|
72 | }
|
73 | export class UIPopoverPresentationControllerDelegateImp {
|
74 | public static initWithOwnerAndCallback(owner: WeakRef<View>, whenClosedCallback: Function): UIPopoverPresentationControllerDelegateImp;
|
75 | }
|
76 | }
|