diff --git a/dsbridge/DWKWebView.h b/dsbridge/DWKWebView.h index 365f526..094f3f8 100644 --- a/dsbridge/DWKWebView.h +++ b/dsbridge/DWKWebView.h @@ -28,10 +28,10 @@ typedef void (^JSCallback)(NSString * _Nullable result,BOOL complete); * Add a Javascript Object to dsBridge with namespace. * @param object * which implemented the javascript interfaces - * @param namespace + * @param nativeNamespace * if empty, the object have no namespace. **/ -- (void)addJavascriptObject:(id _Nullable ) object namespace:(NSString * _Nullable) namespace; +- (void)addJavascriptObject:(id _Nullable ) object namespace:(NSString * _Nullable)nativeNamespace; // Remove the Javascript Object with the supplied namespace - (void)removeJavascriptObject:(NSString * _Nullable) namespace; diff --git a/dsbridge/JSBUtil.h b/dsbridge/JSBUtil.h index c2a6b6f..d7f1aea 100644 --- a/dsbridge/JSBUtil.h +++ b/dsbridge/JSBUtil.h @@ -12,6 +12,6 @@ enum{ + (NSString * _Nullable)objToJsonString:(id _Nonnull)dict; + (id _Nullable)jsonStringToObject:(NSString * _Nonnull)jsonString; +(NSString *_Nullable)methodByNameArg:(NSInteger)argNum - selName:( NSString * _Nullable)selName class:(Class _Nonnull )class; + selName:( NSString * _Nullable)selName class:(Class _Nonnull )clazz; + (NSArray *_Nonnull)parseNamespace: (NSString *_Nonnull) method; @end