|
| 1 | +/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" /> |
1 | 2 |
|
2 | 3 | declare class BEMAnimationManager extends NSObject {
|
3 | 4 |
|
4 |
| - static alloc(): BEMAnimationManager; // inherited from NSObject |
| 5 | + static alloc(): BEMAnimationManager; // inherited from NSObject |
5 | 6 |
|
6 |
| - static new(): BEMAnimationManager; // inherited from NSObject |
| 7 | + static new(): BEMAnimationManager; // inherited from NSObject |
7 | 8 |
|
8 |
| - animationDuration: number; |
| 9 | + animationDuration: number; |
9 | 10 |
|
10 |
| - constructor(); // inherited from NSObject |
| 11 | + constructor(o: { animationDuration: number; }); |
11 | 12 |
|
12 |
| - constructor(o: { animationDuration: number; }); |
| 13 | + fillAnimationWithBouncesAmplitudeReverse(bounces: number, amplitude: number, reverse: boolean): CAKeyframeAnimation; |
13 | 14 |
|
14 |
| - fillAnimationWithBouncesAmplitudeReverse(bounces: number, amplitude: number, reverse: boolean): CAKeyframeAnimation; |
| 15 | + initWithAnimationDuration(animationDuration: number): this; |
15 | 16 |
|
16 |
| - morphAnimationFromPathToPath(fromPath: UIBezierPath, toPath: UIBezierPath): CABasicAnimation; |
| 17 | + morphAnimationFromPathToPath(fromPath: UIBezierPath, toPath: UIBezierPath): CABasicAnimation; |
17 | 18 |
|
18 |
| - opacityAnimationReverse(reverse: boolean): CABasicAnimation; |
| 19 | + opacityAnimationReverse(reverse: boolean): CABasicAnimation; |
19 | 20 |
|
20 |
| - self(): BEMAnimationManager; // inherited from NSObjectProtocol |
21 |
| - |
22 |
| - strokeAnimationReverse(reverse: boolean): CABasicAnimation; |
| 21 | + strokeAnimationReverse(reverse: boolean): CABasicAnimation; |
23 | 22 | }
|
24 | 23 |
|
25 | 24 | declare const enum BEMAnimationType {
|
26 | 25 |
|
27 |
| - Stroke = 0, |
| 26 | + Stroke = 0, |
28 | 27 |
|
29 |
| - Fill = 1, |
| 28 | + Fill = 1, |
30 | 29 |
|
31 |
| - Bounce = 2, |
| 30 | + Bounce = 2, |
32 | 31 |
|
33 |
| - Flat = 3, |
| 32 | + Flat = 3, |
34 | 33 |
|
35 |
| - OneStroke = 4, |
| 34 | + OneStroke = 4, |
36 | 35 |
|
37 |
| - Fade = 5 |
| 36 | + Fade = 5 |
38 | 37 | }
|
39 | 38 |
|
40 | 39 | declare const enum BEMBoxType {
|
41 | 40 |
|
42 |
| - Circle = 0, |
| 41 | + Circle = 0, |
43 | 42 |
|
44 |
| - Square = 1 |
| 43 | + Square = 1 |
45 | 44 | }
|
46 | 45 |
|
47 |
| -declare class BEMCheckBox extends UIView { |
| 46 | +declare class BEMCheckBox extends UIControl implements CAAnimationDelegate { |
| 47 | + |
| 48 | + static alloc(): BEMCheckBox; // inherited from NSObject |
| 49 | + |
| 50 | + static appearance(): BEMCheckBox; // inherited from UIAppearance |
| 51 | + |
| 52 | + static appearanceForTraitCollection(trait: UITraitCollection): BEMCheckBox; // inherited from UIAppearance |
| 53 | + |
| 54 | + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): BEMCheckBox; // inherited from UIAppearance |
| 55 | + |
| 56 | + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject>): BEMCheckBox; // inherited from UIAppearance |
| 57 | + |
| 58 | + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): BEMCheckBox; // inherited from UIAppearance |
| 59 | + |
| 60 | + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject>): BEMCheckBox; // inherited from UIAppearance |
| 61 | + |
| 62 | + static new(): BEMCheckBox; // inherited from NSObject |
| 63 | + |
| 64 | + animationDuration: number; |
| 65 | + |
| 66 | + boxType: BEMBoxType; |
| 67 | + |
| 68 | + cornerRadius: number; |
| 69 | + |
| 70 | + delegate: BEMCheckBoxDelegate; |
| 71 | + |
| 72 | + readonly group: BEMCheckBoxGroup; |
| 73 | + |
| 74 | + hideBox: boolean; |
| 75 | + |
| 76 | + lineWidth: number; |
| 77 | + |
| 78 | + minimumTouchSize: CGSize; |
48 | 79 |
|
49 |
| - static appearance(): BEMCheckBox; // inherited from UIAppearance |
| 80 | + offAnimationType: BEMAnimationType; |
50 | 81 |
|
51 |
| - static appearanceForTraitCollection(trait: UITraitCollection): BEMCheckBox; // inherited from UIAppearance |
| 82 | + offFillColor: UIColor; |
52 | 83 |
|
53 |
| - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): BEMCheckBox; // inherited from UIAppearance |
| 84 | + on: boolean; |
54 | 85 |
|
55 |
| - //static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject>): BEMCheckBox; // inherited from UIAppearance |
| 86 | + onAnimationType: BEMAnimationType; |
56 | 87 |
|
57 |
| - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): BEMCheckBox; // inherited from UIAppearance |
| 88 | + onCheckColor: UIColor; |
58 | 89 |
|
59 |
| - //static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject>): BEMCheckBox; // inherited from UIAppearance |
| 90 | + onFillColor: UIColor; |
60 | 91 |
|
61 |
| - animationDuration: number; |
| 92 | + onTintColor: UIColor; |
62 | 93 |
|
63 |
| - boxType: BEMBoxType; |
| 94 | + readonly debugDescription: string; // inherited from NSObjectProtocol |
64 | 95 |
|
65 |
| - delegate: BEMCheckBoxDelegate; |
| 96 | + readonly description: string; // inherited from NSObjectProtocol |
66 | 97 |
|
67 |
| - hideBox: boolean; |
| 98 | + readonly hash: number; // inherited from NSObjectProtocol |
68 | 99 |
|
69 |
| - lineWidth: number; |
| 100 | + readonly isProxy: boolean; // inherited from NSObjectProtocol |
70 | 101 |
|
71 |
| - minimumTouchSize: CGSize; |
| 102 | + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol |
72 | 103 |
|
73 |
| - offAnimationType: BEMAnimationType; |
| 104 | + readonly // inherited from NSObjectProtocol |
74 | 105 |
|
75 |
| - on: boolean; |
| 106 | + animationDidStart(anim: CAAnimation): void; |
76 | 107 |
|
77 |
| - onAnimationType: BEMAnimationType; |
| 108 | + animationDidStopFinished(anim: CAAnimation, flag: boolean): void; |
78 | 109 |
|
79 |
| - onCheckColor: UIColor; |
| 110 | + class(): typeof NSObject; |
80 | 111 |
|
81 |
| - onFillColor: UIColor; |
| 112 | + conformsToProtocol(aProtocol: any /* Protocol */): boolean; |
82 | 113 |
|
83 |
| - onTintColor: UIColor; |
| 114 | + isEqual(object: any): boolean; |
84 | 115 |
|
85 |
| - constructor(o: { coder: NSCoder; }); // inherited from NSCoding |
| 116 | + isKindOfClass(aClass: typeof NSObject): boolean; |
86 | 117 |
|
87 |
| - constructor(o: { frame: CGRect; }); // inherited from UIView |
| 118 | + isMemberOfClass(aClass: typeof NSObject): boolean; |
88 | 119 |
|
89 |
| - reload(): void; |
| 120 | + performSelector(aSelector: string): any; |
90 | 121 |
|
91 |
| - self(): BEMCheckBox; // inherited from NSObjectProtocol |
| 122 | + performSelectorWithObject(aSelector: string, object: any): any; |
92 | 123 |
|
93 |
| - setOnAnimated(on: boolean, animated: boolean): void; |
| 124 | + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; |
| 125 | + |
| 126 | + reload(): void; |
| 127 | + |
| 128 | + respondsToSelector(aSelector: string): boolean; |
| 129 | + |
| 130 | + retainCount(): number; |
| 131 | + |
| 132 | + self(): this; |
| 133 | + |
| 134 | + setOnAnimated(on: boolean, animated: boolean): void; |
94 | 135 | }
|
95 | 136 |
|
96 | 137 | interface BEMCheckBoxDelegate extends NSObjectProtocol {
|
97 | 138 |
|
98 |
| - animationDidStopForCheckBox?(checkBox: BEMCheckBox): void; |
| 139 | + animationDidStopForCheckBox?(checkBox: BEMCheckBox): void; |
99 | 140 |
|
100 |
| - didTapCheckBox?(checkBox: BEMCheckBox): void; |
| 141 | + didTapCheckBox?(checkBox: BEMCheckBox): void; |
101 | 142 | }
|
102 | 143 | declare var BEMCheckBoxDelegate: {
|
103 | 144 |
|
104 |
| - prototype: BEMCheckBoxDelegate; |
| 145 | + prototype: BEMCheckBoxDelegate; |
105 | 146 | };
|
106 | 147 |
|
| 148 | +declare class BEMCheckBoxGroup extends NSObject { |
| 149 | + |
| 150 | + static alloc(): BEMCheckBoxGroup; // inherited from NSObject |
| 151 | + |
| 152 | + static groupWithCheckBoxes(checkBoxes: NSArray<BEMCheckBox>): BEMCheckBoxGroup; |
| 153 | + |
| 154 | + static new(): BEMCheckBoxGroup; // inherited from NSObject |
| 155 | + |
| 156 | + readonly checkBoxes: NSHashTable<any>; |
| 157 | + |
| 158 | + mustHaveSelection: boolean; |
| 159 | + |
| 160 | + selectedCheckBox: BEMCheckBox; |
| 161 | + |
| 162 | + addCheckBoxToGroup(checkBox: BEMCheckBox): void; |
| 163 | + |
| 164 | + removeCheckBoxFromGroup(checkBox: BEMCheckBox): void; |
| 165 | +} |
| 166 | + |
107 | 167 | declare var BEMCheckBoxVersionNumber: number;
|
108 | 168 |
|
109 |
| -//declare var BEMCheckBoxVersionString: interop.Reference<number>; |
| 169 | +declare var BEMCheckBoxVersionString: interop.Reference<number>; |
110 | 170 |
|
111 | 171 | declare class BEMPathManager extends NSObject {
|
112 | 172 |
|
113 |
| - static alloc(): BEMPathManager; // inherited from NSObject |
114 |
| - |
115 |
| - static new(): BEMPathManager; // inherited from NSObject |
| 173 | + static alloc(): BEMPathManager; // inherited from NSObject |
116 | 174 |
|
117 |
| - boxType: BEMBoxType; |
| 175 | + static new(): BEMPathManager; // inherited from NSObject |
118 | 176 |
|
119 |
| - lineWidth: number; |
| 177 | + boxType: BEMBoxType; |
120 | 178 |
|
121 |
| - size: number; |
| 179 | + cornerRadius: number; |
122 | 180 |
|
123 |
| - constructor(); // inherited from NSObject |
| 181 | + lineWidth: number; |
124 | 182 |
|
125 |
| - pathForBox(): UIBezierPath; |
| 183 | + size: number; |
126 | 184 |
|
127 |
| - pathForCheckMark(): UIBezierPath; |
| 185 | + pathForBox(): UIBezierPath; |
128 | 186 |
|
129 |
| - pathForFlatCheckMark(): UIBezierPath; |
| 187 | + pathForCheckMark(): UIBezierPath; |
130 | 188 |
|
131 |
| - pathForLongCheckMark(): UIBezierPath; |
| 189 | + pathForFlatCheckMark(): UIBezierPath; |
132 | 190 |
|
133 |
| - self(): BEMPathManager; // inherited from NSObjectProtocol |
| 191 | + pathForLongCheckMark(): UIBezierPath; |
134 | 192 | }
|
0 commit comments