fxjsbridge v1.6.32
FxJSBridge
- 提供一些常用的js调用iOS/Android原生接口的能力
- 需要配合iOS/Android专用APP客户端使用
使用方法
引入开发包
// 方式1: 适用于所有项目 <script src="https://unpkg.com/fxjsbridge@latest/src/index.min.js"></script> // 方式2: 在main.ts文件中引入,用于 vue,react等项目 require('fxjsbridge')
使用
JSBridge.xxx
或fx.xxx
即可使用相关api- typescript支持
- 在项目的
tsconfig.json
配置文件的compilerOptions.types
处添加fxjsbridge
提供的接口
接口具体的使用方式参考
index.d.ts
文件 1. openURL 2. replace 3. closeWindow 4. setLocalStorage 5. getLocalStorage 6. removeLocalStorage 7. setSessionStorage 8. getSessionStorage 9. removeSessionStorage 10. showLoading 11. showToast 12. showSuccess 13. showError 14. showHUD 15. hideHUD 16. showModal 17. setNavigationBarStyle 18. showActionSheet 19. previewImage 20. chooseImage 21. chooseMedia 22. chooseFile 23. saveImageToPhoto 24. scanQRCode 25. getLocation 26. getUUID 27. setClipboardData 28. getClipboardData 29. getNetworkType 30. request 31. uploadFile 32. disableStickyViewForSpecificWhenKeyboardIsUp
33. enableStickyViewForSpecificWhenKeyboardIsUp
34. startFacialRecognitionVerify 35. prepareRealPersonVerification 36. startRealPersonVerification 37. checkIsBiometricEnrolledInDevice 38. startBiometricAuthentication 39. getSystemInfo 40. callPhone 41. sendSMS 42. sendMail ...
Fline 内部源
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago