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

68 lines
2.2 KiB
C
Raw Normal View History

2022-10-19 12:51:03 +08:00
//
// FATAppletConfigurationDelegate.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 FATAppletConfigurationDelegate <NSObject>
@optional
#pragma mark-- 小程序配置
/// 给小程序设置配置项,使用场景:需要给某个特定小程序设置特殊配置项
/// @param appletInfo 小程序信息
- (FATAppletConfig *)getConfigWithAppletInfo:(FATAppletInfo *)appletInfo;
/// 小程序灰度扩展参数
/// @param appletId 小程序id
- (NSDictionary *)grayExtensionWithAppletId:(NSString *)appletId;
/// 设置小程序的Cookie
/// @param appletId 小程序id
- (NSDictionary *)getCookieWithAppletInfo:(NSString *)appletId;
#pragma mark - JS SDK
/// 验证 js-sdk config信息 (未实现该代理方法则默认为验证通过)
/// @param appletInfo 小程序信息
/// @param config 验证信息
/// @param completion 执行完后的回调验证通过则code返回FATExtensionCodeSuccess失败返回FATExtensionCodeFailure
- (void)applet:(FATAppletInfo *)appletInfo
onJSSDKConfig:(NSDictionary *)config
completion:(void (^)(FATExtensionCode code, NSDictionary *result))completion;
#pragma mark - H5 hook events
/**
H5requestbody
requestInfo
bodyType: body
requestHref: request
requestIdidqueryFinClipHookBridge-RequestId
requestUrlrequest
value: requestbody
{
bodyType = String;
requestHref = "http://aaronly.gitee.io/aymj";
requestId = 16499170263357297;
requestUrl = "https://www.finclip.com/api/v1/mop/mop-fast-trial-manager/web/visits/statistics";
value = "{\"type\":\"download_click\"}";
};
*/
- (void)applet:(FATAppletInfo *)appletInfo hookRequestInfo:(NSDictionary *)requestInfo;
@end
NS_ASSUME_NONNULL_END