-
Notifications
You must be signed in to change notification settings - Fork 2
/
ApiDefinitions.cs
417 lines (330 loc) · 17.7 KB
/
ApiDefinitions.cs
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
using System;
using CoreGraphics;
using Foundation;
using ObjCRuntime;
using UIKit;
namespace SVProgressHUDBinding
{
[Static]
//[Verify(ConstantsInterfaceAssociation)]
partial interface Constants
{
// extern NSString *const _Nonnull SVProgressHUDDidReceiveTouchEventNotification;
[Field("SVProgressHUDDidReceiveTouchEventNotification", "__Internal")]
NSString SVProgressHUDDidReceiveTouchEventNotification { get; }
// extern NSString *const _Nonnull SVProgressHUDDidTouchDownInsideNotification;
[Field("SVProgressHUDDidTouchDownInsideNotification", "__Internal")]
NSString SVProgressHUDDidTouchDownInsideNotification { get; }
// extern NSString *const _Nonnull SVProgressHUDWillDisappearNotification;
[Field("SVProgressHUDWillDisappearNotification", "__Internal")]
NSString SVProgressHUDWillDisappearNotification { get; }
// extern NSString *const _Nonnull SVProgressHUDDidDisappearNotification;
[Field("SVProgressHUDDidDisappearNotification", "__Internal")]
NSString SVProgressHUDDidDisappearNotification { get; }
// extern NSString *const _Nonnull SVProgressHUDWillAppearNotification;
[Field("SVProgressHUDWillAppearNotification", "__Internal")]
NSString SVProgressHUDWillAppearNotification { get; }
// extern NSString *const _Nonnull SVProgressHUDDidAppearNotification;
[Field("SVProgressHUDDidAppearNotification", "__Internal")]
NSString SVProgressHUDDidAppearNotification { get; }
// extern NSString *const _Nonnull SVProgressHUDStatusUserInfoKey;
[Field("SVProgressHUDStatusUserInfoKey", "__Internal")]
NSString SVProgressHUDStatusUserInfoKey { get; }
}
// typedef void (^SVProgressHUDShowCompletion)();
delegate void SVProgressHUDShowCompletion();
// typedef void (^SVProgressHUDDismissCompletion)();
delegate void SVProgressHUDDismissCompletion();
// @interface SVProgressHUD : UIView
[BaseType(typeof(UIView))]
interface SVProgressHUD
{
// @property (assign, nonatomic) SVProgressHUDStyle defaultStyle __attribute__((annotate("ui_appearance_selector")));
[Export("defaultStyle", ArgumentSemantic.Assign)]
SVProgressHUDStyle DefaultStyle { get; set; }
// @property (assign, nonatomic) SVProgressHUDMaskType defaultMaskType __attribute__((annotate("ui_appearance_selector")));
[Export("defaultMaskType", ArgumentSemantic.Assign)]
SVProgressHUDMaskType DefaultMaskType { get; set; }
// @property (assign, nonatomic) SVProgressHUDAnimationType defaultAnimationType __attribute__((annotate("ui_appearance_selector")));
[Export("defaultAnimationType", ArgumentSemantic.Assign)]
SVProgressHUDAnimationType DefaultAnimationType { get; set; }
// @property (nonatomic, strong) UIView * _Nullable containerView;
[NullAllowed, Export("containerView", ArgumentSemantic.Strong)]
UIView ContainerView { get; set; }
// @property (assign, nonatomic) CGSize minimumSize __attribute__((annotate("ui_appearance_selector")));
[Export("minimumSize", ArgumentSemantic.Assign)]
CGSize MinimumSize { get; set; }
// @property (assign, nonatomic) CGFloat ringThickness __attribute__((annotate("ui_appearance_selector")));
[Export("ringThickness")]
nfloat RingThickness { get; set; }
// @property (assign, nonatomic) CGFloat ringRadius __attribute__((annotate("ui_appearance_selector")));
[Export("ringRadius")]
nfloat RingRadius { get; set; }
// @property (assign, nonatomic) CGFloat ringNoTextRadius __attribute__((annotate("ui_appearance_selector")));
[Export("ringNoTextRadius")]
nfloat RingNoTextRadius { get; set; }
// @property (assign, nonatomic) CGFloat cornerRadius __attribute__((annotate("ui_appearance_selector")));
[Export("cornerRadius")]
nfloat CornerRadius { get; set; }
// @property (nonatomic, strong) UIFont * _Nonnull font __attribute__((annotate("ui_appearance_selector")));
[Export("font", ArgumentSemantic.Strong)]
UIFont Font { get; set; }
// @property (nonatomic, strong) UIColor * _Nonnull backgroundColor __attribute__((annotate("ui_appearance_selector")));
//[Export("backgroundColor", ArgumentSemantic.Strong)]
//UIColor BackgroundColor { get; set; }
// @property (nonatomic, strong) UIColor * _Nonnull foregroundColor __attribute__((annotate("ui_appearance_selector")));
[Export("foregroundColor", ArgumentSemantic.Strong)]
UIColor ForegroundColor { get; set; }
// @property (nonatomic, strong) UIColor * _Nonnull backgroundLayerColor __attribute__((annotate("ui_appearance_selector")));
[Export("backgroundLayerColor", ArgumentSemantic.Strong)]
UIColor BackgroundLayerColor { get; set; }
// @property (assign, nonatomic) CGSize imageViewSize __attribute__((annotate("ui_appearance_selector")));
[Export("imageViewSize", ArgumentSemantic.Assign)]
CGSize ImageViewSize { get; set; }
// @property (nonatomic, strong) UIImage * _Nonnull infoImage __attribute__((annotate("ui_appearance_selector")));
[Export("infoImage", ArgumentSemantic.Strong)]
UIImage InfoImage { get; set; }
// @property (nonatomic, strong) UIImage * _Nonnull successImage __attribute__((annotate("ui_appearance_selector")));
[Export("successImage", ArgumentSemantic.Strong)]
UIImage SuccessImage { get; set; }
// @property (nonatomic, strong) UIImage * _Nonnull errorImage __attribute__((annotate("ui_appearance_selector")));
[Export("errorImage", ArgumentSemantic.Strong)]
UIImage ErrorImage { get; set; }
// @property (nonatomic, strong) UIView * _Nonnull viewForExtension __attribute__((annotate("ui_appearance_selector")));
[Export("viewForExtension", ArgumentSemantic.Strong)]
UIView ViewForExtension { get; set; }
// @property (assign, nonatomic) NSTimeInterval graceTimeInterval;
[Export("graceTimeInterval")]
double GraceTimeInterval { get; set; }
// @property (assign, nonatomic) NSTimeInterval minimumDismissTimeInterval;
[Export("minimumDismissTimeInterval")]
double MinimumDismissTimeInterval { get; set; }
// @property (assign, nonatomic) NSTimeInterval maximumDismissTimeInterval;
[Export("maximumDismissTimeInterval")]
double MaximumDismissTimeInterval { get; set; }
// @property (assign, nonatomic) UIOffset offsetFromCenter __attribute__((annotate("ui_appearance_selector")));
[Export("offsetFromCenter", ArgumentSemantic.Assign)]
UIOffset OffsetFromCenter { get; set; }
// @property (assign, nonatomic) NSTimeInterval fadeInAnimationDuration __attribute__((annotate("ui_appearance_selector")));
[Export("fadeInAnimationDuration")]
double FadeInAnimationDuration { get; set; }
// @property (assign, nonatomic) NSTimeInterval fadeOutAnimationDuration __attribute__((annotate("ui_appearance_selector")));
[Export("fadeOutAnimationDuration")]
double FadeOutAnimationDuration { get; set; }
// @property (assign, nonatomic) UIWindowLevel maxSupportedWindowLevel;
[Export("maxSupportedWindowLevel")]
double MaxSupportedWindowLevel { get; set; }
// @property (assign, nonatomic) BOOL hapticsEnabled;
[Export("hapticsEnabled")]
bool HapticsEnabled { get; set; }
// +(void)setDefaultStyle:(SVProgressHUDStyle)style;
[Static]
[Export("setDefaultStyle:")]
void SetDefaultStyle(SVProgressHUDStyle style);
// +(void)setDefaultMaskType:(SVProgressHUDMaskType)maskType;
[Static]
[Export("setDefaultMaskType:")]
void SetDefaultMaskType(SVProgressHUDMaskType maskType);
// +(void)setDefaultAnimationType:(SVProgressHUDAnimationType)type;
[Static]
[Export("setDefaultAnimationType:")]
void SetDefaultAnimationType(SVProgressHUDAnimationType type);
// +(void)setContainerView:(UIView * _Nullable)containerView;
[Static]
[Export("setContainerView:")]
void SetContainerView([NullAllowed] UIView containerView);
// +(void)setMinimumSize:(CGSize)minimumSize;
[Static]
[Export("setMinimumSize:")]
void SetMinimumSize(CGSize minimumSize);
// +(void)setRingThickness:(CGFloat)ringThickness;
[Static]
[Export("setRingThickness:")]
void SetRingThickness(nfloat ringThickness);
// +(void)setRingRadius:(CGFloat)radius;
[Static]
[Export("setRingRadius:")]
void SetRingRadius(nfloat radius);
// +(void)setRingNoTextRadius:(CGFloat)radius;
[Static]
[Export("setRingNoTextRadius:")]
void SetRingNoTextRadius(nfloat radius);
// +(void)setCornerRadius:(CGFloat)cornerRadius;
[Static]
[Export("setCornerRadius:")]
void SetCornerRadius(nfloat cornerRadius);
// +(void)setBorderColor:(UIColor * _Nonnull)color;
[Static]
[Export("setBorderColor:")]
void SetBorderColor(UIColor color);
// +(void)setBorderWidth:(CGFloat)width;
[Static]
[Export("setBorderWidth:")]
void SetBorderWidth(nfloat width);
// +(void)setFont:(UIFont * _Nonnull)font;
[Static]
[Export("setFont:")]
void SetFont(UIFont font);
// +(void)setForegroundColor:(UIColor * _Nonnull)color;
[Static]
[Export("setForegroundColor:")]
void SetForegroundColor(UIColor color);
// +(void)setBackgroundColor:(UIColor * _Nonnull)color;
[Static]
[Export("setBackgroundColor:")]
void SetBackgroundColor(UIColor color);
// +(void)setBackgroundLayerColor:(UIColor * _Nonnull)color;
[Static]
[Export("setBackgroundLayerColor:")]
void SetBackgroundLayerColor(UIColor color);
// +(void)setImageViewSize:(CGSize)size;
[Static]
[Export("setImageViewSize:")]
void SetImageViewSize(CGSize size);
// +(void)setInfoImage:(UIImage * _Nonnull)image;
[Static]
[Export("setInfoImage:")]
void SetInfoImage(UIImage image);
// +(void)setSuccessImage:(UIImage * _Nonnull)image;
[Static]
[Export("setSuccessImage:")]
void SetSuccessImage(UIImage image);
// +(void)setErrorImage:(UIImage * _Nonnull)image;
[Static]
[Export("setErrorImage:")]
void SetErrorImage(UIImage image);
// +(void)setViewForExtension:(UIView * _Nonnull)view;
[Static]
[Export("setViewForExtension:")]
void SetViewForExtension(UIView view);
// +(void)setGraceTimeInterval:(NSTimeInterval)interval;
[Static]
[Export("setGraceTimeInterval:")]
void SetGraceTimeInterval(double interval);
// +(void)setMinimumDismissTimeInterval:(NSTimeInterval)interval;
[Static]
[Export("setMinimumDismissTimeInterval:")]
void SetMinimumDismissTimeInterval(double interval);
// +(void)setMaximumDismissTimeInterval:(NSTimeInterval)interval;
[Static]
[Export("setMaximumDismissTimeInterval:")]
void SetMaximumDismissTimeInterval(double interval);
// +(void)setFadeInAnimationDuration:(NSTimeInterval)duration;
[Static]
[Export("setFadeInAnimationDuration:")]
void SetFadeInAnimationDuration(double duration);
// +(void)setFadeOutAnimationDuration:(NSTimeInterval)duration;
[Static]
[Export("setFadeOutAnimationDuration:")]
void SetFadeOutAnimationDuration(double duration);
// +(void)setMaxSupportedWindowLevel:(UIWindowLevel)windowLevel;
[Static]
[Export("setMaxSupportedWindowLevel:")]
void SetMaxSupportedWindowLevel(double windowLevel);
// +(void)setHapticsEnabled:(BOOL)hapticsEnabled;
[Static]
[Export("setHapticsEnabled:")]
void SetHapticsEnabled(bool hapticsEnabled);
// +(void)show;
[Static]
[Export("show")]
void Show();
// +(void)showWithMaskType:(SVProgressHUDMaskType)maskType __attribute__((deprecated("Use show and setDefaultMaskType: instead.")));
[Static]
[Export("showWithMaskType:")]
void ShowWithMaskType(SVProgressHUDMaskType maskType);
// +(void)showWithStatus:(NSString * _Nullable)status;
[Static]
[Export("showWithStatus:")]
void ShowWithStatus([NullAllowed] string status);
// +(void)showWithStatus:(NSString * _Nullable)status maskType:(SVProgressHUDMaskType)maskType __attribute__((deprecated("Use showWithStatus: and setDefaultMaskType: instead.")));
[Static]
[Export("showWithStatus:maskType:")]
void ShowWithStatus([NullAllowed] string status, SVProgressHUDMaskType maskType);
// +(void)showProgress:(float)progress;
[Static]
[Export("showProgress:")]
void ShowProgress(float progress);
// +(void)showProgress:(float)progress maskType:(SVProgressHUDMaskType)maskType __attribute__((deprecated("Use showProgress: and setDefaultMaskType: instead.")));
[Static]
[Export("showProgress:maskType:")]
void ShowProgress(float progress, SVProgressHUDMaskType maskType);
// +(void)showProgress:(float)progress status:(NSString * _Nullable)status;
[Static]
[Export("showProgress:status:")]
void ShowProgress(float progress, [NullAllowed] string status);
// +(void)showProgress:(float)progress status:(NSString * _Nullable)status maskType:(SVProgressHUDMaskType)maskType __attribute__((deprecated("Use showProgress:status: and setDefaultMaskType: instead.")));
[Static]
[Export("showProgress:status:maskType:")]
void ShowProgress(float progress, [NullAllowed] string status, SVProgressHUDMaskType maskType);
// +(void)setStatus:(NSString * _Nullable)status;
[Static]
[Export("setStatus:")]
void SetStatus([NullAllowed] string status);
// +(void)showInfoWithStatus:(NSString * _Nullable)status;
[Static]
[Export("showInfoWithStatus:")]
void ShowInfoWithStatus([NullAllowed] string status);
// +(void)showInfoWithStatus:(NSString * _Nullable)status maskType:(SVProgressHUDMaskType)maskType __attribute__((deprecated("Use showInfoWithStatus: and setDefaultMaskType: instead.")));
[Static]
[Export("showInfoWithStatus:maskType:")]
void ShowInfoWithStatus([NullAllowed] string status, SVProgressHUDMaskType maskType);
// +(void)showSuccessWithStatus:(NSString * _Nullable)status;
[Static]
[Export("showSuccessWithStatus:")]
void ShowSuccessWithStatus([NullAllowed] string status);
// +(void)showSuccessWithStatus:(NSString * _Nullable)status maskType:(SVProgressHUDMaskType)maskType __attribute__((deprecated("Use showSuccessWithStatus: and setDefaultMaskType: instead.")));
[Static]
[Export("showSuccessWithStatus:maskType:")]
void ShowSuccessWithStatus([NullAllowed] string status, SVProgressHUDMaskType maskType);
// +(void)showErrorWithStatus:(NSString * _Nullable)status;
[Static]
[Export("showErrorWithStatus:")]
void ShowErrorWithStatus([NullAllowed] string status);
// +(void)showErrorWithStatus:(NSString * _Nullable)status maskType:(SVProgressHUDMaskType)maskType __attribute__((deprecated("Use showErrorWithStatus: and setDefaultMaskType: instead.")));
[Static]
[Export("showErrorWithStatus:maskType:")]
void ShowErrorWithStatus([NullAllowed] string status, SVProgressHUDMaskType maskType);
// +(void)showImage:(UIImage * _Nonnull)image status:(NSString * _Nullable)status;
[Static]
[Export("showImage:status:")]
void ShowImage(UIImage image, [NullAllowed] string status);
// +(void)showImage:(UIImage * _Nonnull)image status:(NSString * _Nullable)status maskType:(SVProgressHUDMaskType)maskType __attribute__((deprecated("Use showImage:status: and setDefaultMaskType: instead.")));
[Static]
[Export("showImage:status:maskType:")]
void ShowImage(UIImage image, [NullAllowed] string status, SVProgressHUDMaskType maskType);
// +(void)setOffsetFromCenter:(UIOffset)offset;
[Static]
[Export("setOffsetFromCenter:")]
void SetOffsetFromCenter(UIOffset offset);
// +(void)resetOffsetFromCenter;
[Static]
[Export("resetOffsetFromCenter")]
void ResetOffsetFromCenter();
// +(void)dismiss;
[Static]
[Export("dismiss")]
void Dismiss();
// +(void)dismissWithCompletion:(SVProgressHUDDismissCompletion _Nullable)completion;
[Static]
[Export("dismissWithCompletion:")]
void DismissWithCompletion([NullAllowed] SVProgressHUDDismissCompletion completion);
// +(void)dismissWithDelay:(NSTimeInterval)delay;
[Static]
[Export("dismissWithDelay:")]
void DismissWithDelay(double delay);
// +(void)dismissWithDelay:(NSTimeInterval)delay completion:(SVProgressHUDDismissCompletion _Nullable)completion;
[Static]
[Export("dismissWithDelay:completion:")]
void DismissWithDelay(double delay, [NullAllowed] SVProgressHUDDismissCompletion completion);
// +(BOOL)isVisible;
[Static]
[Export("isVisible")]
//[Verify(MethodToProperty)]
bool IsVisible { get; }
// +(NSTimeInterval)displayDurationForString:(NSString * _Nullable)string;
[Static]
[Export("displayDurationForString:")]
double DisplayDurationForString([NullAllowed] string @string);
}
}