Merge branch 'master' of https://gitlab.finogeeks.club/finclipsdk/finclip-flutter-sdk into major
commit
d4c3aad10a
|
@ -0,0 +1,19 @@
|
||||||
|
//
|
||||||
|
// MOPButtonOpenTypeDelegate.h
|
||||||
|
// mop
|
||||||
|
//
|
||||||
|
// Created by vhcan on 2023/6/28.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
#import <FinApplet/FinApplet.h>
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
|
@interface MOPButtonOpenTypeDelegate : NSObject<FATAppletButtonOpenTypeDelegate>
|
||||||
|
|
||||||
|
+ (instancetype)instance;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,38 @@
|
||||||
|
//
|
||||||
|
// MOPButtonOpenTypeDelegate.m
|
||||||
|
// mop
|
||||||
|
//
|
||||||
|
// Created by vhcan on 2023/6/28.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "MOPButtonOpenTypeDelegate.h"
|
||||||
|
#import "MopPlugin.h"
|
||||||
|
#import "MopCustomMenuModel.h"
|
||||||
|
#import <mop/MOPTools.h>
|
||||||
|
#import <objc/runtime.h>
|
||||||
|
|
||||||
|
@implementation MOPButtonOpenTypeDelegate
|
||||||
|
|
||||||
|
+ (instancetype)instance
|
||||||
|
{
|
||||||
|
static MOPButtonOpenTypeDelegate *_instance;
|
||||||
|
static dispatch_once_t once;
|
||||||
|
dispatch_once(&once, ^{
|
||||||
|
_instance = [[self alloc] init];
|
||||||
|
});
|
||||||
|
return _instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)getUserProfileWithAppletInfo:(FATAppletInfo *)appletInfo
|
||||||
|
bindGetUserProfile:(void (^)(NSDictionary *result))bindGetUserProfile
|
||||||
|
{
|
||||||
|
FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel];
|
||||||
|
[channel invokeMethod:@"extensionApi:getUserProfile"
|
||||||
|
arguments:nil
|
||||||
|
result:^(id result) {
|
||||||
|
bindGetUserProfile ? bindGetUserProfile(result) : nil;
|
||||||
|
}];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
|
@ -8,6 +8,7 @@
|
||||||
#import "MOP_registerAppletHandler.h"
|
#import "MOP_registerAppletHandler.h"
|
||||||
#import "MopPlugin.h"
|
#import "MopPlugin.h"
|
||||||
#import "MOPAppletDelegate.h"
|
#import "MOPAppletDelegate.h"
|
||||||
|
#import "MOPButtonOpenTypeDelegate.h"
|
||||||
#import <FinApplet/FinApplet.h>
|
#import <FinApplet/FinApplet.h>
|
||||||
|
|
||||||
@implementation MOP_registerAppletHandler
|
@implementation MOP_registerAppletHandler
|
||||||
|
@ -16,6 +17,7 @@
|
||||||
{
|
{
|
||||||
NSLog(@"MOP_registerAppletHandler");
|
NSLog(@"MOP_registerAppletHandler");
|
||||||
[FATClient sharedClient].delegate = [MOPAppletDelegate instance];
|
[FATClient sharedClient].delegate = [MOPAppletDelegate instance];
|
||||||
|
[FATClient sharedClient].buttonOpenTypeDelegate = [MOPButtonOpenTypeDelegate instance];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue