forked from yukesh0505/nativescript-iqkeyboardmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
306 lines (159 loc) · 9.74 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
declare class PreviousNextView {
}
declare class TextViewWithHint {
}
declare const enum IQAutoToolbarManageBehaviour {
BySubviews = 0,
ByTag = 1,
ByPosition = 2
}
declare class IQBarButtonItem extends UIBarButtonItem {
static alloc(): IQBarButtonItem; // inherited from NSObject
static appearance(): IQBarButtonItem; // inherited from UIAppearance
static appearanceForTraitCollection(trait: UITraitCollection): IQBarButtonItem; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): IQBarButtonItem; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject>): IQBarButtonItem; // inherited from UIAppearance
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): IQBarButtonItem; // inherited from UIAppearance
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject>): IQBarButtonItem; // inherited from UIAppearance
static new(): IQBarButtonItem; // inherited from NSObject
invocation: NSInvocation;
readonly isSystemItem: boolean;
setTargetAction(target: any, action: string): void;
}
declare class IQKeyboardManager extends NSObject {
static alloc(): IQKeyboardManager; // inherited from NSObject
static new(): IQKeyboardManager; // inherited from NSObject
static sharedManager(): IQKeyboardManager;
canAdjustAdditionalSafeAreaInsets: boolean;
readonly canGoNext: boolean;
readonly canGoPrevious: boolean;
readonly disabledDistanceHandlingClasses: NSMutableSet<typeof NSObject>;
readonly disabledToolbarClasses: NSMutableSet<typeof NSObject>;
readonly disabledTouchResignedClasses: NSMutableSet<typeof NSObject>;
enable: boolean;
enableAutoToolbar: boolean;
enableDebugging: boolean;
readonly enabledDistanceHandlingClasses: NSMutableSet<typeof NSObject>;
readonly enabledToolbarClasses: NSMutableSet<typeof NSObject>;
readonly enabledTouchResignedClasses: NSMutableSet<typeof NSObject>;
keyboardAppearance: UIKeyboardAppearance;
keyboardDistanceFromTextField: number;
readonly keyboardShowing: boolean;
layoutIfNeededOnUpdate: boolean;
readonly movedDistance: number;
overrideKeyboardAppearance: boolean;
placeholderFont: UIFont;
preventShowingBottomBlankSpace: boolean;
previousNextDisplayMode: IQPreviousNextDisplayMode;
readonly resignFirstResponderGesture: UITapGestureRecognizer;
shouldFixInteractivePopGestureRecognizer: boolean;
shouldPlayInputClicks: boolean;
shouldResignOnTouchOutside: boolean;
shouldShowTextFieldPlaceholder: boolean;
shouldShowToolbarPlaceholder: boolean;
shouldToolbarUsesTextFieldTintColor: boolean;
toolbarBarTintColor: UIColor;
toolbarDoneBarButtonItemImage: UIImage;
toolbarDoneBarButtonItemText: string;
toolbarManageBehaviour: IQAutoToolbarManageBehaviour;
readonly toolbarPreviousNextAllowedClasses: NSMutableSet<typeof NSObject>;
toolbarTintColor: UIColor;
readonly touchResignedGestureIgnoreClasses: NSMutableSet<typeof NSObject>;
goNext(): boolean;
goPrevious(): boolean;
registerAllNotifications(): void;
registerTextFieldViewClassDidBeginEditingNotificationNameDidEndEditingNotificationName(aClass: typeof NSObject, didBeginEditingNotificationName: string, didEndEditingNotificationName: string): void;
reloadInputViews(): void;
reloadLayoutIfNeeded(): void;
resignFirstResponder(): boolean;
unregisterAllNotifications(): void;
unregisterTextFieldViewClassDidBeginEditingNotificationNameDidEndEditingNotificationName(aClass: typeof NSObject, didBeginEditingNotificationName: string, didEndEditingNotificationName: string): void;
}
declare var IQKeyboardManagerVersionNumber: number;
declare var IQKeyboardManagerVersionString: interop.Reference<number>;
declare class IQKeyboardReturnKeyHandler extends NSObject {
static alloc(): IQKeyboardReturnKeyHandler; // inherited from NSObject
static new(): IQKeyboardReturnKeyHandler; // inherited from NSObject
delegate: any;
lastTextFieldReturnKeyType: UIReturnKeyType;
constructor(o: { viewController: UIViewController; });
addResponderFromView(view: UIView): void;
addTextFieldView(textFieldView: UIView): void;
initWithViewController(controller: UIViewController): this;
removeResponderFromView(view: UIView): void;
removeTextFieldView(textFieldView: UIView): void;
}
declare const enum IQPreviousNextDisplayMode {
Default = 0,
AlwaysHide = 1,
AlwaysShow = 2
}
declare class IQPreviousNextView extends UIView {
static alloc(): IQPreviousNextView; // inherited from NSObject
static appearance(): IQPreviousNextView; // inherited from UIAppearance
static appearanceForTraitCollection(trait: UITraitCollection): IQPreviousNextView; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): IQPreviousNextView; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject>): IQPreviousNextView; // inherited from UIAppearance
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): IQPreviousNextView; // inherited from UIAppearance
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject>): IQPreviousNextView; // inherited from UIAppearance
static new(): IQPreviousNextView; // inherited from NSObject
}
declare class IQTextView extends UITextView {
static alloc(): IQTextView; // inherited from NSObject
static appearance(): IQTextView; // inherited from UIAppearance
static appearanceForTraitCollection(trait: UITraitCollection): IQTextView; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): IQTextView; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject>): IQTextView; // inherited from UIAppearance
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): IQTextView; // inherited from UIAppearance
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject>): IQTextView; // inherited from UIAppearance
static new(): IQTextView; // inherited from NSObject
placeholder: string;
}
declare class IQTitleBarButtonItem extends IQBarButtonItem {
static alloc(): IQTitleBarButtonItem; // inherited from NSObject
static appearance(): IQTitleBarButtonItem; // inherited from UIAppearance
static appearanceForTraitCollection(trait: UITraitCollection): IQTitleBarButtonItem; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): IQTitleBarButtonItem; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject>): IQTitleBarButtonItem; // inherited from UIAppearance
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): IQTitleBarButtonItem; // inherited from UIAppearance
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject>): IQTitleBarButtonItem; // inherited from UIAppearance
static new(): IQTitleBarButtonItem; // inherited from NSObject
selectableTextColor: UIColor;
titleFont: UIFont;
constructor(o: { title: string; });
initWithTitle(title: string): this;
}
declare class IQToolbar extends UIToolbar implements UIInputViewAudioFeedback {
static alloc(): IQToolbar; // inherited from NSObject
static appearance(): IQToolbar; // inherited from UIAppearance
static appearanceForTraitCollection(trait: UITraitCollection): IQToolbar; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): IQToolbar; // inherited from UIAppearance
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject>): IQToolbar; // inherited from UIAppearance
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): IQToolbar; // inherited from UIAppearance
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject>): IQToolbar; // inherited from UIAppearance
static new(): IQToolbar; // inherited from NSObject
doneBarButton: IQBarButtonItem;
nextBarButton: IQBarButtonItem;
previousBarButton: IQBarButtonItem;
readonly titleBarButton: IQTitleBarButtonItem;
readonly debugDescription: string; // inherited from NSObjectProtocol
readonly description: string; // inherited from NSObjectProtocol
readonly enableInputClicksWhenVisible: boolean; // inherited from UIInputViewAudioFeedback
readonly hash: number; // inherited from NSObjectProtocol
readonly isProxy: boolean; // inherited from NSObjectProtocol
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
class(): typeof NSObject;
conformsToProtocol(aProtocol: any): boolean;
isEqual(object: any): boolean;
isKindOfClass(aClass: typeof NSObject): boolean;
isMemberOfClass(aClass: typeof NSObject): boolean;
performSelector(aSelector: string): any;
performSelectorWithObject(aSelector: string, object: any): any;
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
respondsToSelector(aSelector: string): boolean;
retainCount(): number;
self(): this;
}
declare var kIQDoneButtonToolbarTag: number;
declare var kIQPreviousNextButtonToolbarTag: number;
declare var kIQUseDefaultKeyboardDistance: number;