phizclip-uniapp-demo/finclip-uniapp-test/nativeplugins/MopSdk/ios/FinApplet.framework/Headers/FATLocalAppletDelegate.h

66 lines
2.3 KiB
C
Raw Normal View History

2022-10-19 12:51:03 +08:00
//
// FATLocalAppletDelegate.h
// FinApplet
//
// Created by 王兆耀 on 2022/9/3.
// Copyright © 2022 finogeeks. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "FATAppletMenuProtocol.h"
#import "FATConstant.h"
#import "FATAppletInfo.h"
#import "FATAppletConfig.h"
#import "FATAppletRequest.h"
NS_ASSUME_NONNULL_BEGIN
@protocol FATLocalAppletDelegate <NSObject>
@optional
#pragma mark - Local Applet
/**
线
@param appletInfo
@param request request使request
@param currentVC
@param completion
*/
- (void)applet:(FATAppletInfo *)appletInfo
navigateToMiniProgram:(FATLocalAppletRequest *)request
currentVC:(UIViewController *)currentVC
completion:(void (^)(FATExtensionCode code, NSDictionary *result))completion;
/**
宿Appzip
appzip
create folder references /.zip
@param appletInfo
@param packDict
@param zipPathCallback zip zipPathCallback(nil)
*/
- (void)localApplet:(FATAppletInfo *)appletInfo packDict:(NSDictionary *)packDict zipPathCallback:(void (^)(NSString *zipPath))zipPathCallback;
/// 获取本地小程序账号信息
/// @brief 获取本地小程序账号信息,返回的信息结构:
/// @{
/// @"miniProgram": @{
/// @"appId": ##小程序appId##,
/// @"envVersion": ##小程序版本##,
/// @"version": ##线上小程序版本号##
/// },
/// @"plugin": @{
/// @"appId": ##插件appId##,
/// @"version": ##插件版本号##
/// }
/// }
/// @param appletInfo 小程序信息
/// @return 小程序账号信息
- (NSDictionary *)localAppletAccountInfo:(FATAppletInfo *)appletInfo;
@end
NS_ASSUME_NONNULL_END