diff --git a/ios/Classes/Api/MOP_scanOpenApplet.h b/ios/Classes/Api/MOP_scanOpenApplet.h new file mode 100644 index 0000000..d6e423b --- /dev/null +++ b/ios/Classes/Api/MOP_scanOpenApplet.h @@ -0,0 +1,16 @@ +// +// MOP_scanOpenApplet.h +// mop +// +// Created by beetle_92 on 2021/6/7. +// + +#import "MOPBaseApi.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface MOP_scanOpenApplet : MOPBaseApi + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/Classes/Api/MOP_scanOpenApplet.m b/ios/Classes/Api/MOP_scanOpenApplet.m new file mode 100644 index 0000000..86e0631 --- /dev/null +++ b/ios/Classes/Api/MOP_scanOpenApplet.m @@ -0,0 +1,17 @@ +// +// MOP_scanOpenApplet.m +// mop +// +// Created by beetle_92 on 2021/6/7. +// + +#import "MOP_scanOpenApplet.h" +#import + +@implementation MOP_scanOpenApplet + +- (void)setupApiWithSuccess:(void (^)(NSDictionary * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel { + NSLog(@"MOP_scanOpenApplet"); +} + +@end diff --git a/lib/mop.dart b/lib/mop.dart index 643a7f6..fd8aa9e 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -157,6 +157,13 @@ class Mop { .then((value) => value["data"]); } + /// + /// (扫码后)解密-鉴权-打开小程序 + /// + Future scanOpenApplet(String info) async { + return await _channel.invokeMapMethod("scanOpenApplet"); + } + /// /// register handler to provide custom info or behaviour /// 注册小程序事件处理