react-native-bt-device/ios/RNBTDevice/INVSSDK.framework/Headers/INVSBleTool.h

23 lines
711 B
C
Raw Permalink Normal View History

2024-03-24 09:45:44 +00:00
#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
@protocol BR_Callback <NSObject>
//用于蓝牙设备连接状态变更的通知
-(void)BR_connectResult:(BOOL)isconnected;
@end
@interface INVSBleTool : NSObject <CBCentralManagerDelegate, CBPeripheralDelegate>
//初始化
- (instancetype)init:(id<BR_Callback>)delegate;
//连接蓝牙设备
- (BOOL)connect:(NSString *) device;//支持名称mac地址uuid
- (BOOL)connectBt:(CBPeripheral *)peripheral;
- (BOOL)connectBt:(CBPeripheral *)peripheral usingCBManager:(CBCentralManager *)cbmanager;
//断开蓝牙设备连接
- (BOOL)disconnectBt;
//读取身份证信息
- (NSDictionary *)readCert;
- (NSDictionary *)readCard;
@end