试下修改menus
parent
f9ee987c5a
commit
2ed4c891c5
|
@ -57,18 +57,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)appletInfo:(FATAppletInfo *)appletInfo didClickMoreBtnAtPath:(NSString *)path {
|
- (BOOL)appletInfo:(FATAppletInfo *)appletInfo didClickMoreBtnAtPath:(NSString *)path {
|
||||||
__block BOOL flag;
|
return NO;
|
||||||
FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel];
|
// __block BOOL flag;
|
||||||
NSLog(@"appletInfo:didClickMoreBtnAtPath,appId=%@,path=%@,channel=%@",appletInfo.appId,path,channel);
|
// FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel];
|
||||||
[channel invokeMethod:@"extensionApi:customCapsuleMoreButtonClick" arguments:@{@"appId": appletInfo.appId} result:^(id _Nullable result) {
|
// NSLog(@"appletInfo:didClickMoreBtnAtPath,appId=%@,path=%@,channel=%@",appletInfo.appId,path,channel);
|
||||||
CFRunLoopStop(CFRunLoopGetMain());
|
// [channel invokeMethod:@"extensionApi:customCapsuleMoreButtonClick" arguments:@{@"appId": appletInfo.appId} result:^(id _Nullable result) {
|
||||||
if ([result isKindOfClass:[NSNumber class]]) {
|
// CFRunLoopStop(CFRunLoopGetMain());
|
||||||
flag = [result boolValue];
|
// if ([result isKindOfClass:[NSNumber class]]) {
|
||||||
}
|
// flag = [result boolValue];
|
||||||
}];
|
// }
|
||||||
CFRunLoopRun();
|
// }];
|
||||||
|
// CFRunLoopRun();
|
||||||
return flag;
|
//
|
||||||
|
// return flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray<id<FATAppletMenuProtocol>> *)customMenusInApplet:(FATAppletInfo *)appletInfo atPath:(NSString *)path {
|
- (NSArray<id<FATAppletMenuProtocol>> *)customMenusInApplet:(FATAppletInfo *)appletInfo atPath:(NSString *)path {
|
||||||
|
|
Loading…
Reference in New Issue