mop-flutter-sdk/ios/Classes/FinAppletExt/Client/FATClient+ext.h

47 lines
1.7 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//
// FATClient+ext.h
// Pods
//
// Created by 王滔 on 2021/11/15.
//
#ifndef FATClient_ext_h
#define FATClient_ext_h
#import <FinApplet/FinApplet.h>
@interface FATClient (FATAppletExt)
///
/// @param authType 0: 1: 2: 3:
/// @param appletId id
/// @param complete status: 0 1: 2: sdk
- (void)fat_requestAppletAuthorize:(FATAuthorizationType)authType appletId:(NSString *)appletId complete:(void (^)(NSInteger status))complete;
/// 内部sdk注入API方法包括扩展sdk和其他地图等sdk 注入的API会加到内部白名单列表保证小程序在设置了api白名单的情况下也能正常响应
/// @param extApiName API名称
/// @param handler 回调
- (BOOL)registerInnerExtensionApi:(NSString *)extApiName handler:(void (^)(FATAppletInfo *appletInfo, id param, FATExtensionApiCallback callback))handler;
/**
内部sdk注入API方法包括扩展sdk和其他地图等sdk 注入的API会加到内部白名单列表保证小程序在设置了api白名单的情况下也能正常响应
@param syncExtApiName 扩展的api名称
@param handler 回调
@return 返回注册结果
*/
- (BOOL)registerInnerSyncExtensionApi:(NSString *)syncExtApiName handler:(NSDictionary *(^)(FATAppletInfo *appletInfo, id param))handler;
/**
为HTML 注册要调用的原生 api内部sdk注入的api
@param webApiName 原生api名字
@param handler 回调
*/
- (BOOL)fat_registerInnerWebApi:(NSString *)webApiName handler:(void (^)(FATAppletInfo *appletInfo, id param, FATExtensionApiCallback callback))handler;
@end
#endif /* FATClient_ext_h */