JLChen
2021-05-13 7f62f2d3bf626ac55d2d2de05ca1d71eaaabef39
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
using System;
 
using ObjCRuntime;
using Foundation;
using UIKit;
 
namespace Shared.IOS.LCVideoOnSDK
{
    //[Static]
    //[Verify(ConstantsInterfaceAssociation)]
    //partial interface Constants
    //{
    //    // extern NSString *const _Nonnull LCCallDelegateOpenDoorSuccess;
    //    [Field("LCCallDelegateOpenDoorSuccess", "__Internal")]
    //    NSString LCCallDelegateOpenDoorSuccess { get; }
    //}
 
    // @protocol LCCallDelegate <NSObject>
    [Protocol, Model(AutoGeneratedName = true)]
    [BaseType(typeof(NSObject))]
    interface LCCallDelegate
    {
        // @required -(void)onAnswerAction;
        [Abstract]
        [Export("onAnswerAction")]
        void OnAnswerAction();
 
        // @required -(void)onRejectCallAction;
        [Abstract]
        [Export("onRejectCallAction")]
        void OnRejectCallAction();
 
        // @required -(void)onUnlockAction;
        [Abstract]
        [Export("onUnlockAction")]
        void OnUnlockAction();
 
        // @required -(void)onHangUpAction:(int)callDuration;
        [Abstract]
        [Export("onHangUpAction:")]
        void OnHangUpAction(int callDuration);
 
        // @required -(void)onScreenshotSuccessfulAction:(UIImage * _Nonnull)image;
        [Abstract]
        [Export("onScreenshotSuccessfulAction:")]
        void OnScreenshotSuccessfulAction(UIImage image);
    }
 
 
    // @interface LCOnIntercomViewController : UIViewController
    [BaseType(typeof(UIViewController))]
    interface LCOnIntercomViewController
    {
        [Wrap("WeakMLCCallDelegate")]
        [NullAllowed]
        LCCallDelegate MLCCallDelegate { get; set; }
 
        // @property (nonatomic, weak) id<LCCallDelegate> _Nullable mLCCallDelegate;
        [NullAllowed, Export("mLCCallDelegate", ArgumentSemantic.Weak)]
        NSObject WeakMLCCallDelegate { get; set; }
    }
 
    // @interface LCOnMonitorViewController : UIViewController
    [BaseType(typeof(UIViewController))]
    interface LCOnMonitorViewController
    {
        [Wrap("WeakMLCCallDelegate")]
        [NullAllowed]
        LCCallDelegate MLCCallDelegate { get; set; }
 
        // @property (nonatomic, weak) id<LCCallDelegate> _Nullable mLCCallDelegate;
        [NullAllowed, Export("mLCCallDelegate", ArgumentSemantic.Weak)]
        NSObject WeakMLCCallDelegate { get; set; }
    }
 
    // @interface LCApiKit : NSObject
    [BaseType(typeof(NSObject))]
    interface LCApiKit
    {
        // +(instancetype _Nonnull)sharedInstance;
        [Static]
        [Export("sharedInstance")]
        LCApiKit SharedInstance();
 
        // @property (nonatomic, strong) NSString * _Nonnull lcSdkToken;
        [Export("lcSdkToken", ArgumentSemantic.Strong)]
        string LcSdkToken { get; set; }
 
        // @property (nonatomic, strong) NSString * _Nonnull sdkHostApi;
        [Export("sdkHostApi", ArgumentSemantic.Strong)]
        string SdkHostApi { get; set; }
 
        // @property (assign, nonatomic) _Bool isChinaMainland;
        [Export("isChinaMainland")]
        bool IsChinaMainland { get; set; }
 
        // @property (nonatomic, strong) NSString * _Nonnull currentDeviceId;
        [Export("currentDeviceId", ArgumentSemantic.Strong)]
        string CurrentDeviceId { get; set; }
 
        // @property (nonatomic, strong) NSString * _Nonnull currentDeviceName;
        [Export("currentDeviceName", ArgumentSemantic.Strong)]
        string CurrentDeviceName { get; set; }
 
        // @property (nonatomic, strong) NSString * _Nonnull currentPsk;
        [Export("currentPsk", ArgumentSemantic.Strong)]
        string CurrentPsk { get; set; }
 
        // @property (nonatomic, strong) NSString * _Nonnull currentDevicePlayToken;
        [Export("currentDevicePlayToken", ArgumentSemantic.Strong)]
        string CurrentDevicePlayToken { get; set; }
 
        // -(NSString * _Nonnull)LCSDKHost;
        [Export("LCSDKHost")]
        //[Verify(MethodToProperty)]
        string LCSDKHost { get; }
 
        // -(NSInteger)LCSDKPort;
        [Export("LCSDKPort")]
        //[Verify(MethodToProperty)]
        nint LCSDKPort { get; }
 
        // -(void)initSDKOpenApi:(NSString * _Nonnull)lcToken;
        [Export("initSDKOpenApi:")]
        void InitSDKOpenApi(string lcToken);
    }
}