BBASMBaseAPIBridge.h
897 Bytes
//
// BBASMBaseAPIBridge.h
// BBAMNP
//
// Created by baidu on 2019/5/10.
// Copyright © 2019 Baidu. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <JavaScriptCore/JavaScriptCore.h>
#import "BBASMAPPInfoModel.h"
@class BBAJSBContext;
NS_ASSUME_NONNULL_BEGIN
@interface BBASMBaseAPIBridge : NSObject
@property (nonatomic, copy) NSString *appID;
@property (nonatomic, assign) BBASMAPPInfoType jsType;
@property (nonatomic, weak) BBAJSBContext *currentJSContext;
@property (nonatomic, weak) NSThread *executeJSThread;
- (instancetype)initWithJSContext:(BBAJSBContext *)jsContext jsThread:(NSThread *)jsThread;
- (void)invokeJSCallback:(NSString *)callback arguments:(NSDictionary *)arguments;
- (nullable NSDictionary *)paramDictFromJSValue:(JSValue *)jsValue;
- (nullable NSDictionary *)paramFromPromptMessageValue:(JSValue *)messageValue;
@end
NS_ASSUME_NONNULL_END