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

47 lines
1.7 KiB
Dart
Raw Normal View History

2023-08-02 19:36:40 +08:00
//
// 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;
/**
sdkAPIsdksdk APIapi
@param syncExtApiName api
@param handler
@return
*/
- (BOOL)registerInnerSyncExtensionApi:(NSString *)syncExtApiName handler:(NSDictionary *(^)(FATAppletInfo *appletInfo, id param))handler;
/**
HTML apisdkapi
@param webApiName api
@param handler
*/
- (BOOL)fat_registerInnerWebApi:(NSString *)webApiName handler:(void (^)(FATAppletInfo *appletInfo, id param, FATExtensionApiCallback callback))handler;
@end
#endif /* FATClient_ext_h */