From 2ed4c891c5b79c1230739505cb24307c483bebbb Mon Sep 17 00:00:00 2001 From: stewen Date: Mon, 14 Aug 2023 09:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E4=B8=8B=E4=BF=AE=E6=94=B9menus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOPAppletDelegate.m | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 5866728..7956019 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -57,18 +57,19 @@ } - (BOOL)appletInfo:(FATAppletInfo *)appletInfo didClickMoreBtnAtPath:(NSString *)path { - __block BOOL flag; - FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; - NSLog(@"appletInfo:didClickMoreBtnAtPath,appId=%@,path=%@,channel=%@",appletInfo.appId,path,channel); - [channel invokeMethod:@"extensionApi:customCapsuleMoreButtonClick" arguments:@{@"appId": appletInfo.appId} result:^(id _Nullable result) { - CFRunLoopStop(CFRunLoopGetMain()); - if ([result isKindOfClass:[NSNumber class]]) { - flag = [result boolValue]; - } - }]; - CFRunLoopRun(); - - return flag; + return NO; +// __block BOOL flag; +// FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; +// NSLog(@"appletInfo:didClickMoreBtnAtPath,appId=%@,path=%@,channel=%@",appletInfo.appId,path,channel); +// [channel invokeMethod:@"extensionApi:customCapsuleMoreButtonClick" arguments:@{@"appId": appletInfo.appId} result:^(id _Nullable result) { +// CFRunLoopStop(CFRunLoopGetMain()); +// if ([result isKindOfClass:[NSNumber class]]) { +// flag = [result boolValue]; +// } +// }]; +// CFRunLoopRun(); +// +// return flag; } - (NSArray> *)customMenusInApplet:(FATAppletInfo *)appletInfo atPath:(NSString *)path {