You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
934 B
34 lines
934 B
// |
|
// WXSDKInstance+Bridge.h |
|
// libWeex |
|
// |
|
// Created by dcloud on 2019/3/4. |
|
// Copyright © 2019 DCloud. All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
#import "WXSDKInstance.h" |
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
|
|
typedef NS_ENUM(NSInteger, WXSDKInstanceBridgeEvent) { |
|
WXSDKInstanceBridgeEventExec, |
|
WXSDKInstanceBridgeEventExecSync, |
|
WXSDKInstanceBridgeEventUniappFrameworkReady, |
|
WXSDKInstanceBridgeEventPostMessage, |
|
WXSDKInstanceBridgeEventGeInfo |
|
}; |
|
|
|
@interface WXSDKInstance(DCPlusBridge) |
|
@property (nonatomic, copy) id __nullable (^onMessage)(WXSDKInstanceBridgeEvent evt, id __nullable param); |
|
- (void)postMessage:(NSDictionary*)message; |
|
- (void)exec:(NSString*)message; |
|
- (NSData*)execSync:(NSString*)message; |
|
- (void)onUniappFramworkReady:(NSString*)message; |
|
- (NSDictionary*)getConfigInfo; |
|
- (void)dc_executeJavascript:(NSString*)javaScriptString; |
|
- (void)clearOnMessage; |
|
@end |
|
|
|
NS_ASSUME_NONNULL_END
|
|
|