bonus-material-app/nativeplugins/Mpaas-Scan/ios/TBScanSDK.framework/Headers/MPScanCodeAdapterInterface.h

68 lines
2.3 KiB
C
Raw Normal View History

2024-12-20 09:23:59 +08:00
//
// MPScanCodeAdapterInterface.h
// MPScanCodeAdapter
//
// Created by yangwei on 2020/7/10.
// Copyright © 2020 Alipay. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef void (^MPModuleKeepAliveCallback)(id result, BOOL keepAlive);
@protocol MPScanViewControllerDelegate <NSObject>
/**
scanPhotoFailed不同的是SDK默认弹框之前调用delegate处理SDK内部不再弹框
*/
- (void)scanLocalPhotoFailedBeforeDefaultAlert;
/**
pop
*/
- (void)customCloseCurrentScanViewController:(UIViewController *)currentScanViewController;
@end
@class TBScanViewController;
@interface MPScanCodeAdapterInterface : NSObject
+ (instancetype)sharedInstance;
/*
mPaaS
* @param callback 线result结果字段包括一下内容keepAlive可忽略
@{
@"resp_code":@"1000", // 扫码结果码1000标识s成功
@"resp_message":@"success", // 扫码状态
@"resp_result":@"http://alipay.techfin.com" // 扫码内容
}
*/
- (TBScanViewController *)createDefaultScanPageWithallback:(MPModuleKeepAliveCallback)callback;
@property (nonatomic,weak) id<MPScanViewControllerDelegate> delegate;
///<扫码光线正常时的提示文案,默认为“扫二维码/条码”
@property (nonatomic,strong) NSString *tipLabelTitle;
///<是否显示相册入口
@property (nonatomic,assign) BOOL shoulShowAlbum;
///< 闪光灯按钮正常展现时的 title默认为“轻触照亮”
@property (nonatomic,strong) NSString *torchStateNormalTitle;
///< 闪光灯按钮被选中后状态时的 title默认为“轻触关闭”
@property (nonatomic,strong) NSString *torchStateSelectedTitle;
// 自定义多码中间页的tips提示文案默认为“点击蓝点选择要扫的码”
@property(nonatomic, strong) NSString *multiCodeTipsLabelTitle;
// 自定义多码中间页的icon默认为蓝底白色箭头图,大小请务必与 TBScanSDK.bundle/multiple_mark_blue.png 图片保持一致
@property(nonatomic, strong) NSString *multiCodeMarkerImagePath;
@end
NS_ASSUME_NONNULL_END