wxr
2020-06-15 b8e94316e41eba72d927d5ca7d931b26139ee8ff
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
using System;
using CoreGraphics;
using Foundation;
using ObjCRuntime;
using UIKit;
 
 
namespace Shared
{
    // @interface GlobalInfo : NSObject
    [BaseType(typeof(NSObject))]
    interface GlobalInfo
    {
        // +(GlobalInfo *)sharedInstance;
        [Static]
        [Export("sharedInstance")]
        //[Verify(MethodToProperty)]
        GlobalInfo SharedInstance { get; }
    }
 
 
    //// @interface ZJPickerView : UIView
    //[BaseType(typeof(UIView))]
    //interface ZJPickerView
    //{
    //    // +(void)zj_showWithDataList:(NSArray * _Nonnull)dataList propertyDict:(NSDictionary * _Nullable)propertyDict completion:(void (^ _Nullable)(NSString * _Nullable))completion;
    //    [Static]
    //    [Export("zj_showWithDataList:propertyDict:completion:")]
    //    //[Verify(StronglyTypedNSArray)]
    //    //void Zj_showWithDataList(NSString[] dataList, [NullAllowed] NSDictionary propertyDict, [NullAllowed] Action<NSString> completion);
    //    void Zj_showWithDataList(NSArray dataList, [NullAllowed] NSDictionary propertyDict, [NullAllowed] Action<NSString> completion);
    //}
 
    //[Static]
    ////[Verify(ConstantsInterfaceAssociation)]
    //partial interface Constants
    //{
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyCanceBtnTitleKey;
    //    [Field("ZJPickerViewPropertyCanceBtnTitleKey", "__Internal")]
    //    NSString ZJPickerViewPropertyCanceBtnTitleKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertySureBtnTitleKey;
    //    [Field("ZJPickerViewPropertySureBtnTitleKey", "__Internal")]
    //    NSString ZJPickerViewPropertySureBtnTitleKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyTipLabelTextKey;
    //    [Field("ZJPickerViewPropertyTipLabelTextKey", "__Internal")]
    //    NSString ZJPickerViewPropertyTipLabelTextKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyCanceBtnTitleColorKey;
    //    [Field("ZJPickerViewPropertyCanceBtnTitleColorKey", "__Internal")]
    //    NSString ZJPickerViewPropertyCanceBtnTitleColorKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertySureBtnTitleColorKey;
    //    [Field("ZJPickerViewPropertySureBtnTitleColorKey", "__Internal")]
    //    NSString ZJPickerViewPropertySureBtnTitleColorKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyTipLabelTextColorKey;
    //    [Field("ZJPickerViewPropertyTipLabelTextColorKey", "__Internal")]
    //    NSString ZJPickerViewPropertyTipLabelTextColorKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyLineViewBackgroundColorKey;
    //    [Field("ZJPickerViewPropertyLineViewBackgroundColorKey", "__Internal")]
    //    NSString ZJPickerViewPropertyLineViewBackgroundColorKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyCanceBtnTitleFontKey;
    //    [Field("ZJPickerViewPropertyCanceBtnTitleFontKey", "__Internal")]
    //    NSString ZJPickerViewPropertyCanceBtnTitleFontKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertySureBtnTitleFontKey;
    //    [Field("ZJPickerViewPropertySureBtnTitleFontKey", "__Internal")]
    //    NSString ZJPickerViewPropertySureBtnTitleFontKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyTipLabelTextFontKey;
    //    [Field("ZJPickerViewPropertyTipLabelTextFontKey", "__Internal")]
    //    NSString ZJPickerViewPropertyTipLabelTextFontKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyPickerViewHeightKey;
    //    [Field("ZJPickerViewPropertyPickerViewHeightKey", "__Internal")]
    //    NSString ZJPickerViewPropertyPickerViewHeightKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyOneComponentRowHeightKey;
    //    [Field("ZJPickerViewPropertyOneComponentRowHeightKey", "__Internal")]
    //    NSString ZJPickerViewPropertyOneComponentRowHeightKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertySelectRowTitleAttrKey;
    //    [Field("ZJPickerViewPropertySelectRowTitleAttrKey", "__Internal")]
    //    NSString ZJPickerViewPropertySelectRowTitleAttrKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyUnSelectRowTitleAttrKey;
    //    [Field("ZJPickerViewPropertyUnSelectRowTitleAttrKey", "__Internal")]
    //    NSString ZJPickerViewPropertyUnSelectRowTitleAttrKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyIsTouchBackgroundHideKey;
    //    [Field("ZJPickerViewPropertyIsTouchBackgroundHideKey", "__Internal")]
    //    NSString ZJPickerViewPropertyIsTouchBackgroundHideKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyIsShowSelectContentKey;
    //    [Field("ZJPickerViewPropertyIsShowSelectContentKey", "__Internal")]
    //    NSString ZJPickerViewPropertyIsShowSelectContentKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyIsScrollToSelectedRowKey;
    //    [Field("ZJPickerViewPropertyIsScrollToSelectedRowKey", "__Internal")]
    //    NSString ZJPickerViewPropertyIsScrollToSelectedRowKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyIsAnimationShowKey;
    //    [Field("ZJPickerViewPropertyIsAnimationShowKey", "__Internal")]
    //    NSString ZJPickerViewPropertyIsAnimationShowKey { get; }
 
    //    // extern NSString *const _Nonnull ZJPickerViewPropertyBackgroundAlphaKey;
    //    [Field("ZJPickerViewPropertyBackgroundAlphaKey", "__Internal")]
    //    NSString ZJPickerViewPropertyBackgroundAlphaKey { get; }
    //}
 
 
 
    // @interface MyIpAddress : NSObject
    [BaseType(typeof(NSObject))]
    interface MyIpAddress
    {
        // +(NSString *)getIPAddress:(BOOL)preferIPv4;
        [Static]
        [Export("getCurrentLocalIP")]
        string GetIPAddress();
 
        [Static]
        [Export("getCurrentBroadcastIP")]
        string GetCurrentBroadcastIP();
    }
 
    #region AMPopTip
    // @interface AMPopTip : UIView
    [BaseType(typeof(UIView))]
    internal interface AMPopTip
    {
        // +(instancetype)popTip;
        [Static]
        [Export("popTip")]
        AMPopTip PopTip();
 
        // -(void)showText:(NSString *)text direction:(AMPopTipDirection)direction maxWidth:(CGFloat)maxWidth inView:(UIView *)view fromFrame:(CGRect)frame;
        [Export("showText:direction:maxWidth:inView:fromFrame:")]
        void ShowText(string text, AMPopTipDirection direction, nfloat maxWidth, UIView view, CGRect frame);
 
        // -(void)showAttributedText:(NSAttributedString *)text direction:(AMPopTipDirection)direction maxWidth:(CGFloat)maxWidth inView:(UIView *)view fromFrame:(CGRect)frame;
        [Export("showAttributedText:direction:maxWidth:inView:fromFrame:")]
        void ShowAttributedText(NSAttributedString text, AMPopTipDirection direction, nfloat maxWidth, UIView view, CGRect frame);
 
        // -(void)showCustomView:(UIView *)customView direction:(AMPopTipDirection)direction inView:(UIView *)view fromFrame:(CGRect)frame;
        [Export("showCustomView:direction:inView:fromFrame:")]
        void ShowCustomView(UIView customView, AMPopTipDirection direction, UIView view, CGRect frame);
 
        // -(void)showText:(NSString *)text direction:(AMPopTipDirection)direction maxWidth:(CGFloat)maxWidth inView:(UIView *)view fromFrame:(CGRect)frame duration:(NSTimeInterval)interval;
        [Export("showText:direction:maxWidth:inView:fromFrame:duration:")]
        void ShowText(string text, AMPopTipDirection direction, nfloat maxWidth, UIView view, CGRect frame, double interval);
 
        // -(void)showAttributedText:(NSAttributedString *)text direction:(AMPopTipDirection)direction maxWidth:(CGFloat)maxWidth inView:(UIView *)view fromFrame:(CGRect)frame duration:(NSTimeInterval)interval;
        [Export("showAttributedText:direction:maxWidth:inView:fromFrame:duration:")]
        void ShowAttributedText(NSAttributedString text, AMPopTipDirection direction, nfloat maxWidth, UIView view, CGRect frame, double interval);
 
        // -(void)showCustomView:(UIView *)customView direction:(AMPopTipDirection)direction inView:(UIView *)view fromFrame:(CGRect)frame duration:(NSTimeInterval)interval;
        [Export("showCustomView:direction:inView:fromFrame:duration:")]
        void ShowCustomView(UIView customView, AMPopTipDirection direction, UIView view, CGRect frame, double interval);
 
        // -(void)hide;
        [Export("hide")]
        void Hide();
 
        // -(void)updateText:(NSString *)text;
        [Export("updateText:")]
        void UpdateText(string text);
 
        // -(void)startActionAnimation;
        [Export("startActionAnimation")]
        void StartActionAnimation();
 
        // -(void)stopActionAnimation;
        [Export("stopActionAnimation")]
        void StopActionAnimation();
 
        // @property (nonatomic, strong) UIFont * font __attribute__((annotate("ui_appearance_selector")));
        [Export("font", ArgumentSemantic.Strong)]
        UIFont Font { get; set; }
 
        // @property (nonatomic, strong) UIColor * textColor __attribute__((annotate("ui_appearance_selector")));
        [Export("textColor", ArgumentSemantic.Strong)]
        UIColor TextColor { get; set; }
 
        // @property (assign, nonatomic) NSTextAlignment textAlignment __attribute__((annotate("ui_appearance_selector")));
        [Export("textAlignment", ArgumentSemantic.Assign)]
        UITextAlignment TextAlignment { get; set; }
 
        // @property (nonatomic, strong) UIColor * popoverColor __attribute__((annotate("ui_appearance_selector")));
        [Export("popoverColor", ArgumentSemantic.Strong)]
        UIColor PopoverColor { get; set; }
 
        // @property (nonatomic, strong) UIColor * borderColor __attribute__((annotate("ui_appearance_selector")));
        [Export("borderColor", ArgumentSemantic.Strong)]
        UIColor BorderColor { get; set; }
 
        // @property (assign, nonatomic) CGFloat borderWidth __attribute__((annotate("ui_appearance_selector")));
        [Export("borderWidth")]
        nfloat BorderWidth { get; set; }
 
        // @property (assign, nonatomic) CGFloat radius __attribute__((annotate("ui_appearance_selector")));
        [Export("radius")]
        nfloat Radius { get; set; }
 
        // @property (getter = isRounded, assign, nonatomic) BOOL rounded __attribute__((annotate("ui_appearance_selector")));
        [Export("rounded")]
        bool Rounded { [Bind("isRounded")] get; set; }
 
        // @property (assign, nonatomic) CGFloat offset __attribute__((annotate("ui_appearance_selector")));
        [Export("offset")]
        nfloat Offset { get; set; }
 
        // @property (assign, nonatomic) CGFloat padding __attribute__((annotate("ui_appearance_selector")));
        [Export("padding")]
        nfloat Padding { get; set; }
 
        // @property (assign, nonatomic) UIEdgeInsets edgeInsets __attribute__((annotate("ui_appearance_selector")));
        [Export("edgeInsets", ArgumentSemantic.Assign)]
        UIEdgeInsets EdgeInsets { get; set; }
 
        // @property (assign, nonatomic) CGSize arrowSize __attribute__((annotate("ui_appearance_selector")));
        [Export("arrowSize", ArgumentSemantic.Assign)]
        CGSize ArrowSize { get; set; }
 
        // @property (assign, nonatomic) NSTimeInterval animationIn __attribute__((annotate("ui_appearance_selector")));
        [Export("animationIn")]
        double AnimationIn { get; set; }
 
        // @property (assign, nonatomic) NSTimeInterval animationOut __attribute__((annotate("ui_appearance_selector")));
        [Export("animationOut")]
        double AnimationOut { get; set; }
 
        // @property (assign, nonatomic) NSTimeInterval delayIn __attribute__((annotate("ui_appearance_selector")));
        [Export("delayIn")]
        double DelayIn { get; set; }
 
        // @property (assign, nonatomic) NSTimeInterval delayOut __attribute__((annotate("ui_appearance_selector")));
        [Export("delayOut")]
        double DelayOut { get; set; }
 
        // @property (assign, nonatomic) AMPopTipEntranceAnimation entranceAnimation __attribute__((annotate("ui_appearance_selector")));
        [Export("entranceAnimation", ArgumentSemantic.Assign)]
        AMPopTipEntranceAnimation EntranceAnimation { get; set; }
 
        // @property (assign, nonatomic) AMPopTipActionAnimation actionAnimation __attribute__((annotate("ui_appearance_selector")));
        [Export("actionAnimation", ArgumentSemantic.Assign)]
        AMPopTipActionAnimation ActionAnimation { get; set; }
 
        // @property (assign, nonatomic) CGFloat actionFloatOffset __attribute__((annotate("ui_appearance_selector")));
        [Export("actionFloatOffset")]
        nfloat ActionFloatOffset { get; set; }
 
        // @property (assign, nonatomic) CGFloat actionBounceOffset __attribute__((annotate("ui_appearance_selector")));
        [Export("actionBounceOffset")]
        nfloat ActionBounceOffset { get; set; }
 
        // @property (assign, nonatomic) CGFloat actionPulseOffset __attribute__((annotate("ui_appearance_selector")));
        [Export("actionPulseOffset")]
        nfloat ActionPulseOffset { get; set; }
 
        // @property (assign, nonatomic) NSTimeInterval actionAnimationIn __attribute__((annotate("ui_appearance_selector")));
        [Export("actionAnimationIn")]
        double ActionAnimationIn { get; set; }
 
        // @property (assign, nonatomic) NSTimeInterval actionAnimationOut __attribute__((annotate("ui_appearance_selector")));
        [Export("actionAnimationOut")]
        double ActionAnimationOut { get; set; }
 
        // @property (assign, nonatomic) NSTimeInterval actionDelayIn __attribute__((annotate("ui_appearance_selector")));
        [Export("actionDelayIn")]
        double ActionDelayIn { get; set; }
 
        // @property (assign, nonatomic) NSTimeInterval actionDelayOut __attribute__((annotate("ui_appearance_selector")));
        [Export("actionDelayOut")]
        double ActionDelayOut { get; set; }
 
        // @property (assign, nonatomic) CGFloat edgeMargin __attribute__((annotate("ui_appearance_selector")));
        [Export("edgeMargin")]
        nfloat EdgeMargin { get; set; }
 
        // @property (assign, nonatomic) CGRect fromFrame;
        [Export("fromFrame", ArgumentSemantic.Assign)]
        CGRect FromFrame { get; set; }
 
        // @property (readonly, assign, nonatomic) BOOL isVisible;
        [Export("isVisible")]
        bool IsVisible { get; }
 
        // @property (readonly, assign, nonatomic) BOOL isAnimating;
        [Export("isAnimating")]
        bool IsAnimating { get; }
 
        // @property (assign, nonatomic) BOOL shouldDismissOnTap;
        [Export("shouldDismissOnTap")]
        bool ShouldDismissOnTap { get; set; }
 
        // @property (assign, nonatomic) BOOL shouldDismissOnTapOutside;
        [Export("shouldDismissOnTapOutside")]
        bool ShouldDismissOnTapOutside { get; set; }
 
        // @property (assign, nonatomic) BOOL shouldDismissOnSwipeOutside;
        [Export("shouldDismissOnSwipeOutside")]
        bool ShouldDismissOnSwipeOutside { get; set; }
 
        // @property (assign, nonatomic) UISwipeGestureRecognizerDirection swipeRemoveGestureDirection;
        [Export("swipeRemoveGestureDirection", ArgumentSemantic.Assign)]
        UISwipeGestureRecognizerDirection SwipeRemoveGestureDirection { get; set; }
 
        // @property (copy, nonatomic) void (^tapHandler)();
        [Export("tapHandler", ArgumentSemantic.Copy)]
        Action TapHandler { get; set; }
 
        // @property (copy, nonatomic) void (^appearHandler)();
        [Export("appearHandler", ArgumentSemantic.Copy)]
        Action AppearHandler { get; set; }
 
        // @property (copy, nonatomic) void (^dismissHandler)();
        [Export("dismissHandler", ArgumentSemantic.Copy)]
        Action DismissHandler { get; set; }
 
        // @property (copy, nonatomic) void (^entranceAnimationHandler)(void (^)(void));
        [Export("entranceAnimationHandler", ArgumentSemantic.Copy)]
        Action<Action> EntranceAnimationHandler { get; set; }
 
        // @property (readonly, nonatomic) CGPoint arrowPosition;
        [Export("arrowPosition")]
        CGPoint ArrowPosition { get; }
 
        // @property (readonly, nonatomic, weak) UIView * _Nullable containerView;
        [NullAllowed, Export("containerView", ArgumentSemantic.Weak)]
        UIView ContainerView { get; }
 
        // @property (readonly, assign, nonatomic) AMPopTipDirection direction;
        [Export("direction", ArgumentSemantic.Assign)]
        AMPopTipDirection Direction { get; }
    }
    #endregion
 
    // typedef void (^CommunSmartPlugBolck)(NSString *);
    delegate void CommunSmartPlugBolck(string arg0);
 
    // @interface WiimuSmartlink : NSObject
    [BaseType(typeof(NSObject))]
    interface WiimuSmartlink
    {
        // +(id)sharedInstance;
        [Static]
        [Export("sharedInstance")]
        WiimuSmartlink SharedInstance { get; }
 
        // -(void)startProvision:(NSString *)ssidStr passwd:(NSString *)passwdStr result:(CommunSmartPlugBolck)block;
        [Export("startProvision:passwd:result:")]
        void StartProvision(string ssidStr, string passwdStr, CommunSmartPlugBolck block);
 
        // -(void)stopProvision:(CommunSmartPlugBolck)block;
        [Export("stopProvision:")]
        void StopProvision(CommunSmartPlugBolck block);
    }
 
 
 }