FWWebViewJsBridgeBase
@interface FWWebViewJsBridgeBase : NSObject
@property (weak, nonatomic, nullable) id<FWWebViewJsBridgeDelegate> delegate;
@property (strong, nonatomic, nullable) NSMutableArray *startupMessageQueue;
@property (strong, nonatomic, nullable) NSMutableDictionary *responseCallbacks;
@property (strong, nonatomic, nullable) NSMutableDictionary *messageHandlers;
@property (copy, nonatomic, nullable) FWJsBridgeErrorHandler errorHandler;
@property (copy, nonatomic, nullable) FWJsBridgeFilterHandler filterHandler;
+ (void)enableLogging;
+ (void)setLogMaxLength:(int)length;
- (void)reset;
- (void)sendData:(nullable id)data responseCallback:(nullable FWJsBridgeResponseCallback)responseCallback handlerName:(nullable NSString *)handlerName;
- (void)flushMessageQueue:(NSString *)messageQueueString;
- (void)injectJavascriptFile;
- (BOOL)isWebViewJavascriptBridgeURL:(NSURL *)url;
- (BOOL)isQueueMessageURL:(NSURL *)url;
- (BOOL)isBridgeLoadedURL:(NSURL *)url;
- (void)logUnkownMessage:(NSURL *)url;
- (NSString *)webViewJavascriptCheckCommand;
- (NSString *)webViewJavascriptFetchQueyCommand;
- (void)disableJavscriptAlertBoxSafetyTimeout;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
@property (weak, nonatomic, nullable) id<FWWebViewJsBridgeDelegate> delegate
-
Undocumented
Declaration
Objective-C
@property (strong, nonatomic, nullable) NSMutableArray *startupMessageQueue
-
Undocumented
Declaration
Objective-C
@property (strong, nonatomic, nullable) NSMutableDictionary *responseCallbacks
-
Undocumented
Declaration
Objective-C
@property (strong, nonatomic, nullable) NSMutableDictionary *messageHandlers
-
Undocumented
Declaration
Objective-C
@property (copy, nonatomic, nullable) FWJsBridgeErrorHandler errorHandler
-
Undocumented
Declaration
Objective-C
@property (copy, nonatomic, nullable) FWJsBridgeFilterHandler filterHandler
-
Undocumented
Declaration
Objective-C
+ (void)enableLogging;
-
Undocumented
Declaration
Objective-C
+ (void)setLogMaxLength:(int)length;
-
Undocumented
Declaration
Objective-C
- (void)reset;
-
Undocumented
Declaration
Objective-C
- (void)sendData:(nullable id)data responseCallback:(nullable FWJsBridgeResponseCallback)responseCallback handlerName:(nullable NSString *)handlerName;
-
Undocumented
Declaration
Objective-C
- (void)flushMessageQueue:(NSString *)messageQueueString;
-
Undocumented
Declaration
Objective-C
- (void)injectJavascriptFile;
-
Undocumented
Declaration
Objective-C
- (BOOL)isWebViewJavascriptBridgeURL:(NSURL *)url;
-
Undocumented
Declaration
Objective-C
- (BOOL)isQueueMessageURL:(NSURL *)url;
-
Undocumented
Declaration
Objective-C
- (BOOL)isBridgeLoadedURL:(NSURL *)url;
-
Undocumented
Declaration
Objective-C
- (void)logUnkownMessage:(NSURL *)url;
-
Undocumented
Declaration
Objective-C
- (NSString *)webViewJavascriptCheckCommand;
-
Undocumented
Declaration
Objective-C
- (NSString *)webViewJavascriptFetchQueyCommand;
-
Undocumented
Declaration
Objective-C
- (void)disableJavscriptAlertBoxSafetyTimeout;