Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Objective-C++ #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dsbridge/DWKWebView.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion dsbridge/JSBUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -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