phiz_2.42.13.4
parent
a300a7b5b2
commit
07ccc4ed4f
|
@ -149,6 +149,19 @@ static MopPlugin *_instance;
|
||||||
[PhizLanguageData sharedInstance].countryCode = cCode;
|
[PhizLanguageData sharedInstance].countryCode = cCode;
|
||||||
[PhizLanguageData sharedInstance].languageCode = cLang;
|
[PhizLanguageData sharedInstance].languageCode = cLang;
|
||||||
}
|
}
|
||||||
|
else if ([@"getMiniShareInfo" isEqualToString:call.method]) {
|
||||||
|
NSString *appId = call.arguments[@"appId"];
|
||||||
|
FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel];
|
||||||
|
[channel invokeMethod:@"extensionApi:forwardApplet" arguments:@{@"appletInfo":contentInfo} result:^(id _Nullable result2) {
|
||||||
|
if([result2 isKindOfClass:[FlutterError class]]|| [result2 isKindOfClass:[FlutterMethodNotImplemented class] ])
|
||||||
|
{
|
||||||
|
result(nil);
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
result(result);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
MOPApiRequest* request = [[MOPApiRequest alloc] init];
|
MOPApiRequest* request = [[MOPApiRequest alloc] init];
|
||||||
request.command = call.method;
|
request.command = call.method;
|
||||||
|
|
|
@ -1323,4 +1323,9 @@ class Mop {
|
||||||
void moveCurrentAppletToFront() async {
|
void moveCurrentAppletToFront() async {
|
||||||
return await _channel.invokeMethod("moveCurrentAppletToFront");
|
return await _channel.invokeMethod("moveCurrentAppletToFront");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///获取分享信息
|
||||||
|
Future<dynamic> getMiniShareInfo(String appId) async {
|
||||||
|
return await _channel.invokeMethod("getMiniShareInfo", {"appId": appId});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue