You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4731 lines
168 KiB

4 years ago
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "SubHandler0.h"
#import "FluttifyMessageCodec.h"
// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
// Dart端随机存取对象的容器
extern NSMutableDictionary<NSNumber*, NSObject*>* HEAP;
// 日志打印开关
extern BOOL enableLog;
@implementation TencentLiveFluttifyPlugin (SubHandler0)
- (NSDictionary<NSString*, Handler>*) getSubHandler0 {
__weak __typeof(self)weakSelf = self;
return @{
@"TXLivePush::initWithConfig": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
TXLivePushConfig* config = (TXLivePushConfig*) args[@"config"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::initWithConfig(%@)", args[@"refId"], args[@"config"]);
}
// invoke native method
id result = [ref initWithConfig: config];
// result
// return a ref
id __result__ = result;
methodResult(__result__);
},
@"TXLivePush::startPreview": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
UIView* view = (UIView*) args[@"view"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::startPreview(%@)", args[@"refId"], args[@"view"]);
}
// invoke native method
int result = [ref startPreview: view];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::stopPreview": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::stopPreview()", args[@"refId"]);
}
// invoke native method
[ref stopPreview ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::startPush": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* rtmpURL = (NSString*) args[@"rtmpURL"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::startPush(%@)", args[@"refId"], args[@"rtmpURL"]);
}
// invoke native method
int result = [ref startPush: rtmpURL];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::stopPush": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::stopPush()", args[@"refId"]);
}
// invoke native method
[ref stopPush ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::pausePush": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::pausePush()", args[@"refId"]);
}
// invoke native method
[ref pausePush ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::resumePush": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::resumePush()", args[@"refId"]);
}
// invoke native method
[ref resumePush ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::isPublishing": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::isPublishing()", args[@"refId"]);
}
// invoke native method
bool result = [ref isPublishing];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setVideoQuality_adjustBitrate_adjustResolution": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TX_Enum_Type_VideoQuality quality = (TX_Enum_Type_VideoQuality) [args[@"quality"] integerValue];
// jsonable arg
BOOL adjustBitrate = [args[@"adjustBitrate"] boolValue];
// jsonable arg
BOOL adjustResolution = [args[@"adjustResolution"] boolValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setVideoQuality(%@, %@, %@)", args[@"refId"], args[@"quality"], args[@"adjustBitrate"], args[@"adjustResolution"]);
}
// invoke native method
[ref setVideoQuality : quality adjustBitrate: adjustBitrate adjustResolution: adjustResolution];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::switchCamera": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::switchCamera()", args[@"refId"]);
}
// invoke native method
int result = [ref switchCamera];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setMirror": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL isMirror = [args[@"isMirror"] boolValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setMirror(%@)", args[@"refId"], args[@"isMirror"]);
}
// invoke native method
[ref setMirror : isMirror];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setRenderRotation": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
int rotation = [args[@"rotation"] intValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setRenderRotation(%@)", args[@"refId"], args[@"rotation"]);
}
// invoke native method
[ref setRenderRotation : rotation];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::toggleTorch": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL bEnable = [args[@"bEnable"] boolValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::toggleTorch(%@)", args[@"refId"], args[@"bEnable"]);
}
// invoke native method
BOOL result = [ref toggleTorch: bEnable];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setZoom": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
CGFloat distance = [args[@"distance"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setZoom(%@)", args[@"refId"], args[@"distance"]);
}
// invoke native method
[ref setZoom : distance];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setFocusPosition": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// struct arg
NSValue* touchPointValue = (NSValue*) args[@"touchPoint"];
CGPoint touchPoint;
[touchPointValue getValue:&touchPoint];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setFocusPosition(%@)", args[@"refId"], args[@"touchPoint"]);
}
// invoke native method
[ref setFocusPosition : touchPoint];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::getBeautyManager": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::getBeautyManager()", args[@"refId"]);
}
// invoke native method
TXBeautyManager* result = [ref getBeautyManager];
// result
// return a ref
id __result__ = result;
methodResult(__result__);
},
@"TXLivePush::setMute": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL bEnable = [args[@"bEnable"] boolValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setMute(%@)", args[@"refId"], args[@"bEnable"]);
}
// invoke native method
[ref setMute : bEnable];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::playBGM": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* path = (NSString*) args[@"path"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::playBGM(%@)", args[@"refId"], args[@"path"]);
}
// invoke native method
BOOL result = [ref playBGM: path];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::playBGM_withBeginNotify_withProgressNotify_andCompleteNotify": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* path = (NSString*) args[@"path"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::playBGM(%@, %@, %@, %@)", args[@"refId"], args[@"path"], args[@"beginNotify"], args[@"progressNotify"], args[@"completeNotify"]);
}
// invoke native method
BOOL result = [ref playBGM: path withBeginNotify: ^(NSInteger errCode) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"void|NSInteger#errCode::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* argerrCode = @(errCode);
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::void|NSInteger#errCode::void|NSInteger#errCode" arguments:@{@"errCode": argerrCode == nil ? [NSNull null] : argerrCode}];
});
} withProgressNotify: ^(NSInteger progressMS, NSInteger durationMS) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"void|NSInteger#progressMS,NSInteger#durationMS::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* argprogressMS = @(progressMS);
// primitive callback arg
NSNumber* argdurationMS = @(durationMS);
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::void|NSInteger#progressMS,NSInteger#durationMS::void|NSInteger#progressMS,NSInteger#durationMS" arguments:@{@"progressMS": argprogressMS == nil ? [NSNull null] : argprogressMS, @"durationMS": argdurationMS == nil ? [NSNull null] : argdurationMS}];
});
} andCompleteNotify: ^(NSInteger errCode) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"void|NSInteger#errCode::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* argerrCode = @(errCode);
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::void|NSInteger#errCode::void|NSInteger#errCode" arguments:@{@"errCode": argerrCode == nil ? [NSNull null] : argerrCode}];
});
}];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::stopBGM": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::stopBGM()", args[@"refId"]);
}
// invoke native method
BOOL result = [ref stopBGM];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::pauseBGM": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::pauseBGM()", args[@"refId"]);
}
// invoke native method
BOOL result = [ref pauseBGM];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::resumeBGM": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::resumeBGM()", args[@"refId"]);
}
// invoke native method
BOOL result = [ref resumeBGM];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::getMusicDuration": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* path = (NSString*) args[@"path"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::getMusicDuration(%@)", args[@"refId"], args[@"path"]);
}
// invoke native method
int result = [ref getMusicDuration: path];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setBGMVolume": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float volume = [args[@"volume"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setBGMVolume(%@)", args[@"refId"], args[@"volume"]);
}
// invoke native method
BOOL result = [ref setBGMVolume: volume];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setMicVolume": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float volume = [args[@"volume"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setMicVolume(%@)", args[@"refId"], args[@"volume"]);
}
// invoke native method
BOOL result = [ref setMicVolume: volume];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setBGMPitch": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float pitch = [args[@"pitch"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setBGMPitch(%@)", args[@"refId"], args[@"pitch"]);
}
// invoke native method
BOOL result = [ref setBGMPitch: pitch];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setReverbType": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXReverbType reverbType = (TXReverbType) [args[@"reverbType"] integerValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setReverbType(%@)", args[@"refId"], args[@"reverbType"]);
}
// invoke native method
BOOL result = [ref setReverbType: reverbType];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setVoiceChangerType": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXVoiceChangerType voiceChangerType = (TXVoiceChangerType) [args[@"voiceChangerType"] integerValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setVoiceChangerType(%@)", args[@"refId"], args[@"voiceChangerType"]);
}
// invoke native method
BOOL result = [ref setVoiceChangerType: voiceChangerType];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setBGMPosition": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSInteger position = [args[@"position"] longValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setBGMPosition(%@)", args[@"refId"], args[@"position"]);
}
// invoke native method
BOOL result = [ref setBGMPosition: position];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setAudioVolumeEvaluationListener": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setAudioVolumeEvaluationListener(%@)", args[@"refId"], args[@"volumeEvaluationListener"]);
}
// invoke native method
[ref setAudioVolumeEvaluationListener : ^(NSInteger volume) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"void|NSInteger#volume::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* argvolume = @(volume);
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::void|NSInteger#volume::void|NSInteger#volume" arguments:@{@"volume": argvolume == nil ? [NSNull null] : argvolume}];
});
}];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::enableAudioVolumeEvaluation": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSUInteger interval = [args[@"interval"] unsignedIntegerValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::enableAudioVolumeEvaluation(%@)", args[@"refId"], args[@"interval"]);
}
// invoke native method
[ref enableAudioVolumeEvaluation : interval];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::startRecord": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* videoPath = (NSString*) args[@"videoPath"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::startRecord(%@)", args[@"refId"], args[@"videoPath"]);
}
// invoke native method
int result = [ref startRecord: videoPath];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::stopRecord": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::stopRecord()", args[@"refId"]);
}
// invoke native method
int result = [ref stopRecord];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::snapshot": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::snapshot(%@)", args[@"refId"], args[@"snapshotCompletionBlock"]);
}
// invoke native method
[ref snapshot : ^(UIImage* __arg_0__) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"void|TXImage*#__arg_0__::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// ref callback arg
UIImage* arg__arg_0__ = __arg_0__;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::void|TXImage*#__arg_0__::void|TXImage*#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}];
});
}];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setSendAudioSampleBufferMuted": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL muted = [args[@"muted"] boolValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setSendAudioSampleBufferMuted(%@)", args[@"refId"], args[@"muted"]);
}
// invoke native method
[ref setSendAudioSampleBufferMuted : muted];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::sendMessageEx": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
NSData* data = (NSData*) args[@"data"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::sendMessageEx(%@)", args[@"refId"], args[@"data"]);
}
// invoke native method
BOOL result = [ref sendMessageEx: data];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::sendMessage": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
NSData* data = (NSData*) args[@"data"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::sendMessage(%@)", args[@"refId"], args[@"data"]);
}
// invoke native method
[ref sendMessage : data];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::showVideoDebugLog": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL isShow = [args[@"isShow"] boolValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::showVideoDebugLog(%@)", args[@"refId"], args[@"isShow"]);
}
// invoke native method
[ref showVideoDebugLog : isShow];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setLogViewMargin": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// struct arg
NSValue* marginValue = (NSValue*) args[@"margin"];
UIEdgeInsets margin;
[marginValue getValue:&margin];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setLogViewMargin(%@)", args[@"refId"], args[@"margin"]);
}
// invoke native method
[ref setLogViewMargin : margin];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setEnableClockOverlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL enabled = [args[@"enabled"] boolValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setEnableClockOverlay(%@)", args[@"refId"], args[@"enabled"]);
}
// invoke native method
[ref setEnableClockOverlay : enabled];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::enableClockOverlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::enableClockOverlay()", args[@"refId"]);
}
// invoke native method
BOOL result = [ref enableClockOverlay];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePush::setBeautyStyle_beautyLevel_whitenessLevel_ruddinessLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TX_Enum_Type_BeautyStyle beautyStyle = (TX_Enum_Type_BeautyStyle) [args[@"beautyStyle"] integerValue];
// jsonable arg
float beautyLevel = [args[@"beautyLevel"] floatValue];
// jsonable arg
float whitenessLevel = [args[@"whitenessLevel"] floatValue];
// jsonable arg
float ruddinessLevel = [args[@"ruddinessLevel"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setBeautyStyle(%@, %@, %@, %@)", args[@"refId"], args[@"beautyStyle"], args[@"beautyLevel"], args[@"whitenessLevel"], args[@"ruddinessLevel"]);
}
// invoke native method
[ref setBeautyStyle : beautyStyle beautyLevel: beautyLevel whitenessLevel: whitenessLevel ruddinessLevel: ruddinessLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setFilter": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
UIImage* image = (UIImage*) args[@"image"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setFilter(%@)", args[@"refId"], args[@"image"]);
}
// invoke native method
[ref setFilter : image];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setSpecialRatio": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float specialValue = [args[@"specialValue"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setSpecialRatio(%@)", args[@"refId"], args[@"specialValue"]);
}
// invoke native method
[ref setSpecialRatio : specialValue];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setEyeScaleLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float eyeScaleLevel = [args[@"eyeScaleLevel"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setEyeScaleLevel(%@)", args[@"refId"], args[@"eyeScaleLevel"]);
}
// invoke native method
[ref setEyeScaleLevel : eyeScaleLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setFaceScaleLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float faceScaleLevel = [args[@"faceScaleLevel"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setFaceScaleLevel(%@)", args[@"refId"], args[@"faceScaleLevel"]);
}
// invoke native method
[ref setFaceScaleLevel : faceScaleLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setFaceVLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float faceVLevel = [args[@"faceVLevel"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setFaceVLevel(%@)", args[@"refId"], args[@"faceVLevel"]);
}
// invoke native method
[ref setFaceVLevel : faceVLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setChinLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float chinLevel = [args[@"chinLevel"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setChinLevel(%@)", args[@"refId"], args[@"chinLevel"]);
}
// invoke native method
[ref setChinLevel : chinLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setFaceShortLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float faceShortlevel = [args[@"faceShortlevel"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setFaceShortLevel(%@)", args[@"refId"], args[@"faceShortlevel"]);
}
// invoke native method
[ref setFaceShortLevel : faceShortlevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setNoseSlimLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float noseSlimLevel = [args[@"noseSlimLevel"] floatValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setNoseSlimLevel(%@)", args[@"refId"], args[@"noseSlimLevel"]);
}
// invoke native method
[ref setNoseSlimLevel : noseSlimLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::selectMotionTmpl_inDir": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* tmplName = (NSString*) args[@"tmplName"];
// jsonable arg
NSString* tmplDir = (NSString*) args[@"tmplDir"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::selectMotionTmpl(%@, %@)", args[@"refId"], args[@"tmplName"], args[@"tmplDir"]);
}
// invoke native method
[ref selectMotionTmpl : tmplName inDir: tmplDir];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::setMotionMute": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL motionMute = [args[@"motionMute"] boolValue];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePush@%@::setMotionMute(%@)", args[@"refId"], args[@"motionMute"]);
}
// invoke native method
[ref setMotionMute : motionMute];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::getRoomMemberList": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::getRoomMemberList()", args[@"refId"]);
}
// invoke native method
NSArray* result = [ref getRoomMemberList];
// result
// 返回值: 列表
NSMutableArray<NSObject*>* __result__ = [NSMutableArray array];
for (int __i__ = 0; __i__ < result.count; __i__++) {
NSObject* object = [result objectAtIndex:__i__];
[__result__ addObject: object];
}
methodResult(__result__);
},
@"TXCAVRoom::getRoomVideoList": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::getRoomVideoList()", args[@"refId"]);
}
// invoke native method
NSArray* result = [ref getRoomVideoList];
// result
// 返回值: 列表
NSMutableArray<NSObject*>* __result__ = [NSMutableArray array];
for (int __i__ = 0; __i__ < result.count; __i__++) {
NSObject* object = [result objectAtIndex:__i__];
[__result__ addObject: object];
}
methodResult(__result__);
},
@"TXCAVRoom::isInRoom": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::isInRoom()", args[@"refId"]);
}
// invoke native method
BOOL result = [ref isInRoom];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXCAVRoom::isPushing": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::isPushing()", args[@"refId"]);
}
// invoke native method
BOOL result = [ref isPushing];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXCAVRoom::enterRoom_withCompletion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
TXCAVRoomParam* param = (TXCAVRoomParam*) args[@"param"];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::enterRoom(%@, %@)", args[@"refId"], args[@"param"], args[@"completion"]);
}
// invoke native method
[ref enterRoom : param withCompletion: ^(int result) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"TXIAVRoomCompletionHandler::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* argresult = @(result);
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::TXIAVRoomCompletionHandler::TXIAVRoomCompletionHandler" arguments:@{@"result": argresult == nil ? [NSNull null] : argresult}];
});
}];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::exitRoom": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::exitRoom(%@)", args[@"refId"], args[@"completion"]);
}
// invoke native method
[ref exitRoom : ^(int result) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"TXIAVRoomCompletionHandler::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* argresult = @(result);
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::TXIAVRoomCompletionHandler::TXIAVRoomCompletionHandler" arguments:@{@"result": argresult == nil ? [NSNull null] : argresult}];
});
}];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::startLocalPreview": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
UIView* view = (UIView*) args[@"view"];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::startLocalPreview(%@)", args[@"refId"], args[@"view"]);
}
// invoke native method
[ref startLocalPreview : view];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::stopLocalPreview": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::stopLocalPreview()", args[@"refId"]);
}
// invoke native method
[ref stopLocalPreview ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setRenderMode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXEAVRoomRenderMode renderMode = (TXEAVRoomRenderMode) [args[@"renderMode"] integerValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setRenderMode(%@)", args[@"refId"], args[@"renderMode"]);
}
// invoke native method
[ref setRenderMode : renderMode];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::switchCamera": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::switchCamera()", args[@"refId"]);
}
// invoke native method
[ref switchCamera ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setMirror": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL isMirror = [args[@"isMirror"] boolValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setMirror(%@)", args[@"refId"], args[@"isMirror"]);
}
// invoke native method
[ref setMirror : isMirror];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setAudioMode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXEAVRoomAudioMode audioMode = (TXEAVRoomAudioMode) [args[@"audioMode"] integerValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setAudioMode(%@)", args[@"refId"], args[@"audioMode"]);
}
// invoke native method
[ref setAudioMode : audioMode];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setLocalMute": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL bEnable = [args[@"bEnable"] boolValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setLocalMute(%@)", args[@"refId"], args[@"bEnable"]);
}
// invoke native method
[ref setLocalMute : bEnable];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::pause": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::pause()", args[@"refId"]);
}
// invoke native method
[ref pause ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::resume": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::resume()", args[@"refId"]);
}
// invoke native method
[ref resume ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setVideoBitrate_videoAspect": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSInteger videoBitrate = [args[@"videoBitrate"] longValue];
// enum arg
TXEAVRoomVideoAspect videoAspect = (TXEAVRoomVideoAspect) [args[@"videoAspect"] integerValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setVideoBitrate(%@, %@)", args[@"refId"], args[@"videoBitrate"], args[@"videoAspect"]);
}
// invoke native method
[ref setVideoBitrate : videoBitrate videoAspect: videoAspect];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setBeautyLevel_whitenessLevel_ruddinessLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
int beautyLevel = [args[@"beautyLevel"] intValue];
// jsonable arg
int whitenessLevel = [args[@"whitenessLevel"] intValue];
// jsonable arg
int ruddinessLevel = [args[@"ruddinessLevel"] intValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setBeautyLevel(%@, %@, %@)", args[@"refId"], args[@"beautyLevel"], args[@"whitenessLevel"], args[@"ruddinessLevel"]);
}
// invoke native method
[ref setBeautyLevel : beautyLevel whitenessLevel: whitenessLevel ruddinessLevel: ruddinessLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setEyeScaleLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float eyeScaleLevel = [args[@"eyeScaleLevel"] floatValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setEyeScaleLevel(%@)", args[@"refId"], args[@"eyeScaleLevel"]);
}
// invoke native method
[ref setEyeScaleLevel : eyeScaleLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setFaceScaleLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float faceScaleLevel = [args[@"faceScaleLevel"] floatValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setFaceScaleLevel(%@)", args[@"refId"], args[@"faceScaleLevel"]);
}
// invoke native method
[ref setFaceScaleLevel : faceScaleLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setFilter": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
UIImage* filterImage = (UIImage*) args[@"filterImage"];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setFilter(%@)", args[@"refId"], args[@"filterImage"]);
}
// invoke native method
[ref setFilter : filterImage];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::selectMotionTmpl_inDir": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* tmplName = (NSString*) args[@"tmplName"];
// jsonable arg
NSString* tmplDir = (NSString*) args[@"tmplDir"];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::selectMotionTmpl(%@, %@)", args[@"refId"], args[@"tmplName"], args[@"tmplDir"]);
}
// invoke native method
[ref selectMotionTmpl : tmplName inDir: tmplDir];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setFaceVLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float vLeve = [args[@"vLeve"] floatValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setFaceVLevel(%@)", args[@"refId"], args[@"vLeve"]);
}
// invoke native method
[ref setFaceVLevel : vLeve];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setFaceShortLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float shortLevel = [args[@"shortLevel"] floatValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setFaceShortLevel(%@)", args[@"refId"], args[@"shortLevel"]);
}
// invoke native method
[ref setFaceShortLevel : shortLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setNoseSlimLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float slimLevel = [args[@"slimLevel"] floatValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setNoseSlimLevel(%@)", args[@"refId"], args[@"slimLevel"]);
}
// invoke native method
[ref setNoseSlimLevel : slimLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setChinLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float chinLevel = [args[@"chinLevel"] floatValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setChinLevel(%@)", args[@"refId"], args[@"chinLevel"]);
}
// invoke native method
[ref setChinLevel : chinLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setBeautyStyle": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
int style = [args[@"style"] intValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setBeautyStyle(%@)", args[@"refId"], args[@"style"]);
}
// invoke native method
[ref setBeautyStyle : style];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXCAVRoom::setFilterMixLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float mixLevel = [args[@"mixLevel"] floatValue];
// ref
TXCAVRoom* ref = (TXCAVRoom*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXCAVRoom@%@::setFilterMixLevel(%@)", args[@"refId"], args[@"mixLevel"]);
}
// invoke native method
[ref setFilterMixLevel : mixLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLiveBase::sharedInstance": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::sharedInstance()");
}
// invoke native method
TXLiveBase* result = [TXLiveBase sharedInstance];
// result
// return a ref
id __result__ = result;
methodResult(__result__);
},
@"TXLiveBase::setLogLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TX_Enum_Type_LogLevel level = (TX_Enum_Type_LogLevel) [args[@"level"] integerValue];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::setLogLevel(%@)", args[@"level"]);
}
// invoke native method
[TXLiveBase setLogLevel: level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLiveBase::setConsoleEnabled": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL enabled = [args[@"enabled"] boolValue];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::setConsoleEnabled(%@)", args[@"enabled"]);
}
// invoke native method
[TXLiveBase setConsoleEnabled: enabled];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLiveBase::setAppVersion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* verNum = (NSString*) args[@"verNum"];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::setAppVersion(%@)", args[@"verNum"]);
}
// invoke native method
[TXLiveBase setAppVersion: verNum];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLiveBase::setAudioSessionDelegate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
id<TXLiveAudioSessionDelegate> delegate = (id<TXLiveAudioSessionDelegate>) args[@"delegate"];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::setAudioSessionDelegate(%@)", args[@"delegate"]);
}
// invoke native method
[TXLiveBase setAudioSessionDelegate: self];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLiveBase::getSDKVersionStr": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::getSDKVersionStr()");
}
// invoke native method
NSString* result = [TXLiveBase getSDKVersionStr];
// result
// 返回值: jsonable
id __result__ = result;
methodResult(__result__);
},
@"TXLiveBase::getPituSDKVersion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::getPituSDKVersion()");
}
// invoke native method
NSString* result = [TXLiveBase getPituSDKVersion];
// result
// 返回值: jsonable
id __result__ = result;
methodResult(__result__);
},
@"TXLiveBase::setAppID": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* appID = (NSString*) args[@"appID"];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::setAppID(%@)", args[@"appID"]);
}
// invoke native method
[TXLiveBase setAppID: appID];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLiveBase::setLicenceURL_key": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* url = (NSString*) args[@"url"];
// jsonable arg
NSString* key = (NSString*) args[@"key"];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::setLicenceURL(%@, %@)", args[@"url"], args[@"key"]);
}
// invoke native method
[TXLiveBase setLicenceURL: url key: key];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLiveBase::getLicenceInfo": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLiveBase::getLicenceInfo()");
}
// invoke native method
NSString* result = [TXLiveBase getLicenceInfo];
// result
// 返回值: jsonable
id __result__ = result;
methodResult(__result__);
},
@"TXVideoInfoReader::getVideoInfo": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* videoPath = (NSString*) args[@"videoPath"];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoInfoReader::getVideoInfo(%@)", args[@"videoPath"]);
}
// invoke native method
TXVideoInfo* result = [TXVideoInfoReader getVideoInfo: videoPath];
// result
// return a ref
id __result__ = result;
methodResult(__result__);
},
@"TXVideoInfoReader::getSampleImages_videoPath_progress": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
int count = [args[@"count"] intValue];
// jsonable arg
NSString* videoPath = (NSString*) args[@"videoPath"];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoInfoReader::getSampleImages(%@, %@, %@)", args[@"count"], args[@"videoPath"], args[@"sampleProcess"]);
}
// invoke native method
[TXVideoInfoReader getSampleImages: count videoPath: videoPath progress: ^(int number, UIImage* image) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:@"sampleProcess::Callback"
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* argnumber = @(number);
// ref callback arg
UIImage* argimage = image;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::sampleProcess::sampleProcess"
arguments:@{@"number": argnumber == nil ? [NSNull null] : argnumber, @"image": argimage == nil ? [NSNull null] : argimage}
result:^(id result) {}]; // 由于结果是异步返回, 这里用不上, 所以就不生成代码了
});
// 由于flutter无法同步调用method channel, 所以暂不支持有返回值的回调方法
// 相关issue https://github.com/flutter/flutter/issues/28310
NSLog(@"暂不支持有返回值的回调方法");
////////////////////////////如果需要手写代码, 请写在这里/////////////////////////////
////////////////////////////////////////////////////////////////////////////////
return NO;
}];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoInfoReader::getSampleImage_videoPath": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float time = [args[@"time"] floatValue];
// jsonable arg
NSString* videoPath = (NSString*) args[@"videoPath"];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoInfoReader::getSampleImage(%@, %@)", args[@"time"], args[@"videoPath"]);
}
// invoke native method
UIImage* result = [TXVideoInfoReader getSampleImage: time videoPath: videoPath];
// result
// return a ref
id __result__ = result;
methodResult(__result__);
},
@"TXVideoEditer::initWithPreview": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
TXPreviewParam* param = (TXPreviewParam*) args[@"param"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::initWithPreview(%@)", args[@"refId"], args[@"param"]);
}
// invoke native method
TXVideoEditer* result = [ref initWithPreview: param];
// result
// return a ref
id __result__ = result;
methodResult(__result__);
},
@"TXVideoEditer::setVideoPath": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* videoPath = (NSString*) args[@"videoPath"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setVideoPath(%@)", args[@"refId"], args[@"videoPath"]);
}
// invoke native method
int result = [ref setVideoPath: videoPath];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXVideoEditer::setPictureList_fps": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// list arg
NSArray<UIImage*>* pitureList = (NSArray<UIImage*>*) args[@"pitureList"];
// jsonable arg
int fps = [args[@"fps"] intValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setPictureList(%@, %@)", args[@"refId"], args[@"pitureList"], args[@"fps"]);
}
// invoke native method
int result = [ref setPictureList: pitureList fps: fps];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXVideoEditer::setPictureTransition_duration": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXTransitionType transitionType = (TXTransitionType) [args[@"transitionType"] integerValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setPictureTransition(%@, %@)", args[@"refId"], args[@"transitionType"], args[@"duration"]);
}
// invoke native method
[ref setPictureTransition : transitionType duration: ^(CGFloat __arg_0__) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"void|CGFloat#__arg_0__::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* arg__arg_0__ = @(__arg_0__);
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::void|CGFloat#__arg_0__::void|CGFloat#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}];
});
}];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::previewAtTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
CGFloat time = [args[@"time"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::previewAtTime(%@)", args[@"refId"], args[@"time"]);
}
// invoke native method
[ref previewAtTime : time];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::startPlayFromTime_toTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
CGFloat startTime = [args[@"startTime"] floatValue];
// jsonable arg
CGFloat endTime = [args[@"endTime"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::startPlayFromTime(%@, %@)", args[@"refId"], args[@"startTime"], args[@"endTime"]);
}
// invoke native method
[ref startPlayFromTime : startTime toTime: endTime];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::pausePlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::pausePlay()", args[@"refId"]);
}
// invoke native method
[ref pausePlay ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::resumePlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::resumePlay()", args[@"refId"]);
}
// invoke native method
[ref resumePlay ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::stopPlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::stopPlay()", args[@"refId"]);
}
// invoke native method
[ref stopPlay ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setBeautyFilter_setWhiteningLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float beautyLevel = [args[@"beautyLevel"] floatValue];
// jsonable arg
float whiteningLevel = [args[@"whiteningLevel"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setBeautyFilter(%@, %@)", args[@"refId"], args[@"beautyLevel"], args[@"whiteningLevel"]);
}
// invoke native method
[ref setBeautyFilter : beautyLevel setWhiteningLevel: whiteningLevel];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setFilter": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
UIImage* image = (UIImage*) args[@"image"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setFilter(%@)", args[@"refId"], args[@"image"]);
}
// invoke native method
[ref setFilter : image];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setFilter_leftIntensity_rightFilter_rightIntensity_leftRatio": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
UIImage* leftFilter = (UIImage*) args[@"leftFilter"];
// jsonable arg
CGFloat leftIntensity = [args[@"leftIntensity"] floatValue];
// ref arg
UIImage* rightFilter = (UIImage*) args[@"rightFilter"];
// jsonable arg
CGFloat rightIntensity = [args[@"rightIntensity"] floatValue];
// jsonable arg
CGFloat leftRatio = [args[@"leftRatio"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setFilter(%@, %@, %@, %@, %@)", args[@"refId"], args[@"leftFilter"], args[@"leftIntensity"], args[@"rightFilter"], args[@"rightIntensity"], args[@"leftRatio"]);
}
// invoke native method
[ref setFilter : leftFilter leftIntensity: leftIntensity rightFilter: rightFilter rightIntensity: rightIntensity leftRatio: leftRatio];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setSpecialRatio": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float specialRatio = [args[@"specialRatio"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setSpecialRatio(%@)", args[@"refId"], args[@"specialRatio"]);
}
// invoke native method
[ref setSpecialRatio : specialRatio];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setReverse": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL isReverse = [args[@"isReverse"] boolValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setReverse(%@)", args[@"refId"], args[@"isReverse"]);
}
// invoke native method
[ref setReverse : isReverse];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setRepeatPlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// list arg
NSArray<TXRepeat*>* repeatList = (NSArray<TXRepeat*>*) args[@"repeatList"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setRepeatPlay(%@)", args[@"refId"], args[@"repeatList"]);
}
// invoke native method
[ref setRepeatPlay : repeatList];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setRenderRotation": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
int rotation = [args[@"rotation"] intValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setRenderRotation(%@)", args[@"refId"], args[@"rotation"]);
}
// invoke native method
[ref setRenderRotation : rotation];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setSpeedList": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// list arg
NSArray<TXSpeed*>* speedList = (NSArray<TXSpeed*>*) args[@"speedList"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setSpeedList(%@)", args[@"refId"], args[@"speedList"]);
}
// invoke native method
[ref setSpeedList : speedList];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::startEffect_startTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXEffectType type = (TXEffectType) [args[@"type"] integerValue];
// jsonable arg
float startTime = [args[@"startTime"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::startEffect(%@, %@)", args[@"refId"], args[@"type"], args[@"startTime"]);
}
// invoke native method
[ref startEffect : type startTime: startTime];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::stopEffect_endTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXEffectType type = (TXEffectType) [args[@"type"] integerValue];
// jsonable arg
float endTime = [args[@"endTime"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::stopEffect(%@, %@)", args[@"refId"], args[@"type"], args[@"endTime"]);
}
// invoke native method
[ref stopEffect : type endTime: endTime];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::deleteLastEffect": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::deleteLastEffect()", args[@"refId"]);
}
// invoke native method
[ref deleteLastEffect ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::deleteAllEffect": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::deleteAllEffect()", args[@"refId"]);
}
// invoke native method
[ref deleteAllEffect ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setSubtitleList": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// list arg
NSArray<TXSubtitle*>* subtitleList = (NSArray<TXSubtitle*>*) args[@"subtitleList"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setSubtitleList(%@)", args[@"refId"], args[@"subtitleList"]);
}
// invoke native method
[ref setSubtitleList : subtitleList];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setPasterList": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// list arg
NSArray<TXPaster*>* pasterList = (NSArray<TXPaster*>*) args[@"pasterList"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setPasterList(%@)", args[@"refId"], args[@"pasterList"]);
}
// invoke native method
[ref setPasterList : pasterList];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setAnimatedPasterList": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// list arg
NSArray<TXAnimatedPaster*>* animatedPasterList = (NSArray<TXAnimatedPaster*>*) args[@"animatedPasterList"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setAnimatedPasterList(%@)", args[@"refId"], args[@"animatedPasterList"]);
}
// invoke native method
[ref setAnimatedPasterList : animatedPasterList];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setBGM_result": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* path = (NSString*) args[@"path"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGM(%@, %@)", args[@"refId"], args[@"path"], args[@"result"]);
}
// invoke native method
[ref setBGM : path result: ^(int __arg_0__) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"void|int#__arg_0__::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* arg__arg_0__ = @(__arg_0__);
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::void|int#__arg_0__::void|int#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}];
});
}];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setBGMStartTime_endTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float startTime = [args[@"startTime"] floatValue];
// jsonable arg
float endTime = [args[@"endTime"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMStartTime(%@, %@)", args[@"refId"], args[@"startTime"], args[@"endTime"]);
}
// invoke native method
[ref setBGMStartTime : startTime endTime: endTime];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setBGMLoop": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL isLoop = [args[@"isLoop"] boolValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMLoop(%@)", args[@"refId"], args[@"isLoop"]);
}
// invoke native method
[ref setBGMLoop : isLoop];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setBGMAtVideoTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float time = [args[@"time"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMAtVideoTime(%@)", args[@"refId"], args[@"time"]);
}
// invoke native method
[ref setBGMAtVideoTime : time];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setVideoVolume": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float volume = [args[@"volume"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setVideoVolume(%@)", args[@"refId"], args[@"volume"]);
}
// invoke native method
[ref setVideoVolume : volume];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setBGMVolume": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float volume = [args[@"volume"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMVolume(%@)", args[@"refId"], args[@"volume"]);
}
// invoke native method
[ref setBGMVolume : volume];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setBGMFadeInDuration_fadeOutDuration": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float fadeInDuration = [args[@"fadeInDuration"] floatValue];
// jsonable arg
float fadeOutDuration = [args[@"fadeOutDuration"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setBGMFadeInDuration(%@, %@)", args[@"refId"], args[@"fadeInDuration"], args[@"fadeOutDuration"]);
}
// invoke native method
[ref setBGMFadeInDuration : fadeInDuration fadeOutDuration: fadeOutDuration];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setWaterMark_normalizationFrame": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
UIImage* waterMark = (UIImage*) args[@"waterMark"];
// struct arg
NSValue* normalizationFrameValue = (NSValue*) args[@"normalizationFrame"];
CGRect normalizationFrame;
[normalizationFrameValue getValue:&normalizationFrame];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setWaterMark(%@, %@)", args[@"refId"], args[@"waterMark"], args[@"normalizationFrame"]);
}
// invoke native method
[ref setWaterMark : waterMark normalizationFrame: normalizationFrame];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setTailWaterMark_normalizationFrame_duration": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
UIImage* tailWaterMark = (UIImage*) args[@"tailWaterMark"];
// struct arg
NSValue* normalizationFrameValue = (NSValue*) args[@"normalizationFrame"];
CGRect normalizationFrame;
[normalizationFrameValue getValue:&normalizationFrame];
// jsonable arg
CGFloat duration = [args[@"duration"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setTailWaterMark(%@, %@, %@)", args[@"refId"], args[@"tailWaterMark"], args[@"normalizationFrame"], args[@"duration"]);
}
// invoke native method
[ref setTailWaterMark : tailWaterMark normalizationFrame: normalizationFrame duration: duration];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setCutFromTime_toTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float startTime = [args[@"startTime"] floatValue];
// jsonable arg
float endTime = [args[@"endTime"] floatValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setCutFromTime(%@, %@)", args[@"refId"], args[@"startTime"], args[@"endTime"]);
}
// invoke native method
[ref setCutFromTime : startTime toTime: endTime];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::setVideoBitrate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
int bitrate = [args[@"bitrate"] intValue];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::setVideoBitrate(%@)", args[@"refId"], args[@"bitrate"]);
}
// invoke native method
[ref setVideoBitrate : bitrate];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::generateVideo_videoOutputPath": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue];
// jsonable arg
NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::generateVideo(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]);
}
// invoke native method
[ref generateVideo : videoCompressed videoOutputPath: videoOutputPath];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::quickGenerateVideo_videoOutputPath": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue];
// jsonable arg
NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::quickGenerateVideo(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]);
}
// invoke native method
[ref quickGenerateVideo : videoCompressed videoOutputPath: videoOutputPath];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::generateVideoWithTwoPass_videoOutputPath": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue];
// jsonable arg
NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"];
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::generateVideoWithTwoPass(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]);
}
// invoke native method
[ref generateVideoWithTwoPass : videoCompressed videoOutputPath: videoOutputPath];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::pauseGenerate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::pauseGenerate()", args[@"refId"]);
}
// invoke native method
[ref pauseGenerate ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::resumeGenerate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::resumeGenerate()", args[@"refId"]);
}
// invoke native method
[ref resumeGenerate ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoEditer::cancelGenerate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoEditer* ref = (TXVideoEditer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoEditer@%@::cancelGenerate()", args[@"refId"]);
}
// invoke native method
[ref cancelGenerate ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoJoiner::initWithPreview": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
TXPreviewParam* param = (TXPreviewParam*) args[@"param"];
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::initWithPreview(%@)", args[@"refId"], args[@"param"]);
}
// invoke native method
TXVideoJoiner* result = [ref initWithPreview: param];
// result
// return a ref
id __result__ = result;
methodResult(__result__);
},
@"TXVideoJoiner::setVideoPathList": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// list arg
NSArray<NSObject*>* videoPathList = (NSArray<NSObject*>*) args[@"videoPathList"];
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::setVideoPathList(%@)", args[@"refId"], args[@"videoPathList"]);
}
// invoke native method
int result = [ref setVideoPathList: videoPathList];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXVideoJoiner::setVideoVolumes": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSArray<NSNumber*>* volumes = (NSArray<NSNumber*>*) args[@"volumes"];
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::setVideoVolumes(%@)", args[@"refId"], args[@"volumes"]);
}
// invoke native method
[ref setVideoVolumes : volumes];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoJoiner::startPlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::startPlay()", args[@"refId"]);
}
// invoke native method
[ref startPlay ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoJoiner::pausePlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::pausePlay()", args[@"refId"]);
}
// invoke native method
[ref pausePlay ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoJoiner::resumePlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::resumePlay()", args[@"refId"]);
}
// invoke native method
[ref resumePlay ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoJoiner::stopPlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::stopPlay()", args[@"refId"]);
}
// invoke native method
[ref stopPlay ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoJoiner::joinVideo_videoOutputPath": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue];
// jsonable arg
NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"];
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::joinVideo(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]);
}
// invoke native method
[ref joinVideo : videoCompressed videoOutputPath: videoOutputPath];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoJoiner::splitJoinVideo_videoOutputPath": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXVideoCompressed videoCompressed = (TXVideoCompressed) [args[@"videoCompressed"] integerValue];
// jsonable arg
NSString* videoOutputPath = (NSString*) args[@"videoOutputPath"];
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::splitJoinVideo(%@, %@)", args[@"refId"], args[@"videoCompressed"], args[@"videoOutputPath"]);
}
// invoke native method
[ref splitJoinVideo : videoCompressed videoOutputPath: videoOutputPath];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXVideoJoiner::cancelJoin": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXVideoJoiner* ref = (TXVideoJoiner*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXVideoJoiner@%@::cancelJoin()", args[@"refId"]);
}
// invoke native method
[ref cancelJoin ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setBeautyStyle": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXBeautyStyle beautyStyle = (TXBeautyStyle) [args[@"beautyStyle"] integerValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setBeautyStyle(%@)", args[@"refId"], args[@"beautyStyle"]);
}
// invoke native method
[ref setBeautyStyle : beautyStyle];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setBeautyLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setBeautyLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setBeautyLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setWhitenessLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setWhitenessLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setWhitenessLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setRuddyLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setRuddyLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setRuddyLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setFilter": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref arg
UIImage* image = (UIImage*) args[@"image"];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setFilter(%@)", args[@"refId"], args[@"image"]);
}
// invoke native method
[ref setFilter : image];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setFilterStrength": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float strength = [args[@"strength"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setFilterStrength(%@)", args[@"refId"], args[@"strength"]);
}
// invoke native method
[ref setFilterStrength : strength];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setGreenScreenFile": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* file = (NSString*) args[@"file"];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setGreenScreenFile(%@)", args[@"refId"], args[@"file"]);
}
// invoke native method
[ref setGreenScreenFile : file];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setEyeScaleLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setEyeScaleLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setEyeScaleLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setFaceSlimLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setFaceSlimLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setFaceSlimLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setFaceVLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setFaceVLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setFaceVLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setChinLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setChinLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setChinLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setFaceShortLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setFaceShortLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setFaceShortLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setNoseSlimLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setNoseSlimLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setNoseSlimLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setEyeLightenLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setEyeLightenLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setEyeLightenLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setToothWhitenLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setToothWhitenLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setToothWhitenLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setWrinkleRemoveLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setWrinkleRemoveLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setWrinkleRemoveLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setPounchRemoveLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setPounchRemoveLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setPounchRemoveLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setSmileLinesRemoveLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setSmileLinesRemoveLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setSmileLinesRemoveLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setForeheadLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setForeheadLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setForeheadLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setEyeDistanceLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setEyeDistanceLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setEyeDistanceLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setEyeAngleLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setEyeAngleLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setEyeAngleLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setMouthShapeLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setMouthShapeLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setMouthShapeLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setNoseWingLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setNoseWingLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setNoseWingLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setNosePositionLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setNosePositionLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setNosePositionLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setLipsThicknessLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setLipsThicknessLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setLipsThicknessLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setFaceBeautyLevel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float level = [args[@"level"] floatValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setFaceBeautyLevel(%@)", args[@"refId"], args[@"level"]);
}
// invoke native method
[ref setFaceBeautyLevel : level];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setMotionTmpl_inDir": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* tmplName = (NSString*) args[@"tmplName"];
// jsonable arg
NSString* tmplDir = (NSString*) args[@"tmplDir"];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setMotionTmpl(%@, %@)", args[@"refId"], args[@"tmplName"], args[@"tmplDir"]);
}
// invoke native method
[ref setMotionTmpl : tmplName inDir: tmplDir];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXBeautyManager::setMotionMute": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL motionMute = [args[@"motionMute"] boolValue];
// ref
TXBeautyManager* ref = (TXBeautyManager*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXBeautyManager@%@::setMotionMute(%@)", args[@"refId"], args[@"motionMute"]);
}
// invoke native method
[ref setMotionMute : motionMute];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::setupVideoWidget_containView_insertIndex": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// struct arg
NSValue* frameValue = (NSValue*) args[@"frame"];
CGRect frame;
[frameValue getValue:&frame];
// ref arg
UIView* view = (UIView*) args[@"view"];
// jsonable arg
unsigned int idx = [args[@"idx"] unsignedIntValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::setupVideoWidget(%@, %@, %@)", args[@"refId"], args[@"frame"], args[@"view"], args[@"idx"]);
}
// invoke native method
[ref setupVideoWidget : frame containView: view insertIndex: idx];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::removeVideoWidget": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::removeVideoWidget()", args[@"refId"]);
}
// invoke native method
[ref removeVideoWidget ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::startPlay_type": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* url = (NSString*) args[@"url"];
// enum arg
TX_Enum_PlayType playType = (TX_Enum_PlayType) [args[@"playType"] integerValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::startPlay(%@, %@)", args[@"refId"], args[@"url"], args[@"playType"]);
}
// invoke native method
int result = [ref startPlay: url type: playType];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePlayer::stopPlay": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::stopPlay()", args[@"refId"]);
}
// invoke native method
int result = [ref stopPlay];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePlayer::isPlaying": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::isPlaying()", args[@"refId"]);
}
// invoke native method
BOOL result = [ref isPlaying];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePlayer::pause": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::pause()", args[@"refId"]);
}
// invoke native method
[ref pause ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::resume": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::resume()", args[@"refId"]);
}
// invoke native method
[ref resume ];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::setRenderRotation": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TX_Enum_Type_HomeOrientation rotation = (TX_Enum_Type_HomeOrientation) [args[@"rotation"] integerValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::setRenderRotation(%@)", args[@"refId"], args[@"rotation"]);
}
// invoke native method
[ref setRenderRotation : rotation];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::setRenderMode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TX_Enum_Type_RenderMode renderMode = (TX_Enum_Type_RenderMode) [args[@"renderMode"] integerValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::setRenderMode(%@)", args[@"refId"], args[@"renderMode"]);
}
// invoke native method
[ref setRenderMode : renderMode];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::snapshot": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::snapshot(%@)", args[@"refId"], args[@"snapshotCompletionBlock"]);
}
// invoke native method
[ref snapshot : ^(UIImage* __arg_0__) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"void|TXImage*#__arg_0__::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// ref callback arg
UIImage* arg__arg_0__ = __arg_0__;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::void|TXImage*#__arg_0__::void|TXImage*#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}];
});
}];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::setMute": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL bEnable = [args[@"bEnable"] boolValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::setMute(%@)", args[@"refId"], args[@"bEnable"]);
}
// invoke native method
[ref setMute : bEnable];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::setVolume": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
int volume = [args[@"volume"] intValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::setVolume(%@)", args[@"refId"], args[@"volume"]);
}
// invoke native method
[ref setVolume : volume];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::setAudioRoute": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXAudioRouteType audioRoute = (TXAudioRouteType) [args[@"audioRoute"] integerValue];
// ref
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer::setAudioRoute(%@)", args[@"audioRoute"]);
}
// invoke native method
[TXLivePlayer setAudioRoute: audioRoute];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::setAudioVolumeEvaluationListener": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::setAudioVolumeEvaluationListener(%@)", args[@"refId"], args[@"volumeEvaluationListener"]);
}
// invoke native method
[ref setAudioVolumeEvaluationListener : ^(int __arg_0__) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"void|int#__arg_0__::Callback@%@", @(ref.hash)]
binaryMessenger:[[weakSelf registrar] messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"");
}
// 构造可以直接传输的参数
// primitive callback arg
NSNumber* arg__arg_0__ = @(__arg_0__);
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"Callback::void|int#__arg_0__::void|int#__arg_0__" arguments:@{@"__arg_0__": arg__arg_0__ == nil ? [NSNull null] : arg__arg_0__}];
});
}];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::enableAudioVolumeEvaluation": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSUInteger interval = [args[@"interval"] unsignedIntegerValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::enableAudioVolumeEvaluation(%@)", args[@"refId"], args[@"interval"]);
}
// invoke native method
[ref enableAudioVolumeEvaluation : interval];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::prepareLiveSeek_bizId": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* domain = (NSString*) args[@"domain"];
// jsonable arg
NSInteger bizId = [args[@"bizId"] longValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::prepareLiveSeek(%@, %@)", args[@"refId"], args[@"domain"], args[@"bizId"]);
}
// invoke native method
int result = [ref prepareLiveSeek: domain bizId: bizId];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePlayer::resumeLive": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::resumeLive()", args[@"refId"]);
}
// invoke native method
int result = [ref resumeLive];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePlayer::seek": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float time = [args[@"time"] floatValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::seek(%@)", args[@"refId"], args[@"time"]);
}
// invoke native method
int result = [ref seek: time];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePlayer::startRecord": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// enum arg
TXRecordType recordType = (TXRecordType) [args[@"recordType"] integerValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::startRecord(%@)", args[@"refId"], args[@"recordType"]);
}
// invoke native method
int result = [ref startRecord: recordType];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePlayer::stopRecord": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::stopRecord()", args[@"refId"]);
}
// invoke native method
int result = [ref stopRecord];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePlayer::setRate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
float rate = [args[@"rate"] floatValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::setRate(%@)", args[@"refId"], args[@"rate"]);
}
// invoke native method
[ref setRate : rate];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::setLogViewMargin": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// struct arg
NSValue* marginValue = (NSValue*) args[@"margin"];
UIEdgeInsets margin;
[marginValue getValue:&margin];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::setLogViewMargin(%@)", args[@"refId"], args[@"margin"]);
}
// invoke native method
[ref setLogViewMargin : margin];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::showVideoDebugLog": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
BOOL isShow = [args[@"isShow"] boolValue];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::showVideoDebugLog(%@)", args[@"refId"], args[@"isShow"]);
}
// invoke native method
[ref showVideoDebugLog : isShow];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePlayer::switchStream": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* playUrl = (NSString*) args[@"playUrl"];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::switchStream(%@)", args[@"refId"], args[@"playUrl"]);
}
// invoke native method
int result = [ref switchStream: playUrl];
// result
// 返回值: Value
NSObject* __result__ = @(result);
methodResult(__result__);
},
@"TXLivePlayer::callExperimentalAPI": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
// args
// jsonable arg
NSString* jsonStr = (NSString*) args[@"jsonStr"];
// ref
TXLivePlayer* ref = (TXLivePlayer*) args[@"__this__"];
// print log
if (enableLog) {
NSLog(@"fluttify-objc: TXLivePlayer@%@::callExperimentalAPI(%@)", args[@"refId"], args[@"jsonStr"]);
}
// invoke native method
[ref callExperimentalAPI : jsonStr];
// result
// 无返回值
NSString* __result__ = @"success";
methodResult(__result__);
},
@"TXLivePush::initWithConfig_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
NSMutableArray* resultList = [NSMutableArray array];
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
// args
// ref arg
TXLivePushConfig* config = (TXLivePushConfig*) args[@"config"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// invoke native method
id result = [ref initWithConfig: config];
// result
// return a ref
id __result__ = result;
[resultList addObject:__result__];
}
methodResult(resultList);
},
@"TXLivePush::startPreview_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
NSMutableArray* resultList = [NSMutableArray array];
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
// args
// ref arg
UIView* view = (UIView*) args[@"view"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// invoke native method
int result = [ref startPreview: view];
// result
// 返回值: Value
NSObject* __result__ = @(result);
[resultList addObject:__result__];
}
methodResult(resultList);
},
@"TXLivePush::stopPreview_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
NSMutableArray* resultList = [NSMutableArray array];
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
// args
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// invoke native method
[ref stopPreview ];
// result
// 无返回值
NSString* __result__ = @"success";
[resultList addObject:__result__];
}
methodResult(resultList);
},
@"TXLivePush::startPush_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
NSMutableArray* resultList = [NSMutableArray array];
for (int __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
// args
// jsonable arg
NSString* rtmpURL = (NSString*) args[@"rtmpURL"];
// ref
TXLivePush* ref = (TXLivePush*) args[@"__this__"];
// invoke native method
int result = [ref startPush: rtmpURL];
// result
// 返回值: Value
NSObject* __result__ = @(result);
[resultList addObject:__result__];
}
methodResult(resultList);
},
};
}
@end