InternalApis.m 614 B

12345678910111213141516171819202122232425
  1. #import "InternalApis.h"
  2. #import "JSBUtil.h"
  3. @implementation InternalApis
  4. - (id) hasNativeMethod:(id) args
  5. {
  6. return [self.webview onMessage:args type: DSB_API_HASNATIVEMETHOD];
  7. }
  8. - (id) closePage:(id) args{
  9. return [self.webview onMessage:args type:DSB_API_CLOSEPAGE];
  10. }
  11. - (id) returnValue:(NSDictionary *) args{
  12. return [self.webview onMessage:args type:DSB_API_RETURNVALUE];
  13. }
  14. - (id) dsinit:(id) args{
  15. return [self.webview onMessage:args type:DSB_API_DSINIT];
  16. }
  17. - (id) disableJavascriptDialogBlock:(id) args{
  18. return [self.webview onMessage:args type:DSB_API_DISABLESAFETYALERTBOX];
  19. }
  20. @end