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);
|
}
|
}
|