feat:添加scanOpenApplet接口

master
jizelin 2021-06-07 18:53:00 +08:00
parent 4c3601cc5f
commit 155db4903b
3 changed files with 40 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,17 @@
//
// MOP_scanOpenApplet.m
// mop
//
// Created by beetle_92 on 2021/6/7.
//
#import "MOP_scanOpenApplet.h"
#import <FinApplet/FinApplet.h>
@implementation MOP_scanOpenApplet
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel {
NSLog(@"MOP_scanOpenApplet");
}
@end

View File

@ -157,6 +157,13 @@ class Mop {
.then((value) => value["data"]); .then((value) => value["data"]);
} }
///
/// --
///
Future scanOpenApplet(String info) async {
return await _channel.invokeMapMethod("scanOpenApplet");
}
/// ///
/// register handler to provide custom info or behaviour /// register handler to provide custom info or behaviour
/// ///