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 completion); // void Zj_showWithDataList(NSArray dataList, [NullAllowed] NSDictionary propertyDict, [NullAllowed] Action 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 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); } }