Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/751496032/DSBridge-HarmonyOS
/ functions
Functions
55 in github.com/751496032/DSBridge-HarmonyOS
⨍
Functions
55
◇
Types & classes
18
↓ 9 callers
Method
call
* @param methodName JS实际调用原生的方法 * @param params JS携带过来的参数,有一个callbackID参数 * @returns
library/src/main/ets/entity/Entity.ts:20
↓ 9 callers
Method
handlerError
(result: CallResult, err: string)
library/src/main/ets/entity/BaseBridge.ts:192
↓ 6 callers
Method
isNotEmpty
(val: Object)
library/src/main/ets/entity/BaseBridge.ts:81
↓ 4 callers
Function
JavaScriptInterface
(asyncCall: boolean = true)
library/src/main/ets/entity/Entity.ts:59
↓ 4 callers
Method
d
(msg: any)
library/src/main/ets/utils/LogUtils.ts:19
↓ 4 callers
Method
isEmpty
(val: Object)
library/src/main/ets/entity/BaseBridge.ts:89
↓ 4 callers
Method
runJavaScript
(script: string)
library/src/main/ets/entity/WebViewInterface.ts:10
↓ 3 callers
Method
callJs
(method: string, args?: any[], jsReturnValueHandler?: OnReturnValue)
library/src/main/ets/entity/BaseBridge.ts:240
↓ 3 callers
Method
checkIfDS2
()
library/src/main/ets/entity/BaseBridge.ts:380
↓ 3 callers
Method
e
(msg: any)
library/src/main/ets/utils/LogUtils.ts:30
↓ 2 callers
Function
callAsync
(f, ob)
entry/src/main/resources/rawfile/dsBridge.js:70
↓ 2 callers
Function
callSyn
(f, ob)
entry/src/main/resources/rawfile/dsBridge.js:66
↓ 2 callers
Method
parseNamespace
(method: string)
library/src/main/ets/entity/BaseBridge.ts:201
↓ 2 callers
Method
safeParse
(json: string)
library/src/main/ets/entity/BaseBridge.ts:211
↓ 1 callers
Method
callHandler
(method: string, args?: any[], jsReturnValueHandler?: OnReturnValue)
library/src/main/ets/entity/BaseBridge.ts:267
↓ 1 callers
Method
dTag
(tag: string, msg: any)
library/src/main/ets/utils/LogUtils.ts:11
↓ 1 callers
Method
destroy
()
library/src/main/ets/entity/BaseBridge.ts:388
↓ 1 callers
Method
eTag
(tag: string, msg: any)
library/src/main/ets/utils/LogUtils.ts:23
↓ 1 callers
Function
getJsBridge
()
entry/src/main/resources/rawfile/dsbridge2.0.js:1
↓ 1 callers
Method
isObject
(val: Object)
library/src/main/ets/entity/BaseBridge.ts:77
↓ 1 callers
Method
refresh
()
library/src/main/ets/entity/WebViewInterface.ts:20
↓ 1 callers
Method
registerJavaScriptProxy
* @deprecated * @param object * @param name * @param methodList
library/src/main/ets/entity/WebViewInterface.ts:18
↓ 1 callers
Method
show
(msg: string)
library/src/main/ets/utils/ToastUtils.ts:4
Function
addAbilityMonitorCallback
(err: any)
entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts:12
Method
callHandler
(method: string, args?: Args[], jsReturnValueHandler?: OnReturnValue)
library/src/main/ets/entity/WebViewInterface.ts:44
Method
callHandlerNoParam
(method: string, jsReturnValueHandler?: OnReturnValue)
library/src/main/ets/entity/WebViewInterface.ts:46
Method
callHandlerNoParam
(method: string, jsReturnValueHandler?: OnReturnValue)
library/src/main/ets/entity/BaseBridge.ts:271
Method
callJs
(method: string, args?: Args[], jsReturnValueHandler?: OnReturnValue)
library/src/main/ets/entity/WebViewInterface.ts:36
Method
callJsNoParam
(method: string, jsReturnValueHandler?: OnReturnValue)
library/src/main/ets/entity/WebViewInterface.ts:38
Method
callJsNoParam
(method: string, jsReturnValueHandler?: OnReturnValue)
library/src/main/ets/entity/BaseBridge.ts:263
Method
closePage
(param: any)
library/src/main/ets/entity/BaseBridge.ts:370
Method
complete
* 只能使用一次 * @param value
library/src/main/ets/entity/Entity.ts:42
Method
constructor
()
entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts:17
Method
destroy
()
library/src/main/ets/entity/WebViewInterface.ts:34
Method
dsinit
(param: string)
library/src/main/ets/entity/BaseBridge.ts:316
Method
handler
(has: boolean)
library/src/main/ets/entity/BaseBridge.ts:280
Method
hasJavascriptMethod
(method: string)
library/src/main/ets/entity/WebViewInterface.ts:42
Method
hasJavascriptMethod
(method: string)
library/src/main/ets/entity/BaseBridge.ts:275
Method
hasNativeMethod
(param: string)
library/src/main/ets/entity/BaseBridge.ts:321
Method
injectDS2Js
()
library/src/main/ets/entity/BaseBridge.ts:396
Method
isSupportDS2
()
library/src/main/ets/entity/BaseBridge.ts:41
Method
javaScriptProxy
()
library/src/main/ets/entity/BaseBridge.ts:54
Method
logEnable
(enabled: boolean)
library/src/main/ets/utils/LogUtils.ts:7
Function
onAbilityCreateCallback
()
entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts:8
Method
onPrepare
()
entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts:20
Method
onRun
()
entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts:24
Method
returnValue
(param: string, value?: string)
library/src/main/ets/entity/BaseBridge.ts:289
Method
setClosePageListener
(listener: OnCloseWindowListener)
library/src/main/ets/entity/WebViewInterface.ts:40
Method
setClosePageListener
(listener: OnCloseWindowListener)
library/src/main/ets/entity/BaseBridge.ts:365
Method
setGlobalErrorMessageListener
(listener: OnErrorMessageListener)
library/src/main/ets/entity/WebViewInterface.ts:48
Method
setGlobalErrorMessageListener
(listener: OnErrorMessageListener)
library/src/main/ets/entity/BaseBridge.ts:49
Method
setProgressData
* 可以使用多次 * @param value
library/src/main/ets/entity/Entity.ts:47
Method
setWebViewControllerProxy
(controller: IWebViewControllerProxy)
library/src/main/ets/entity/BaseBridge.ts:45
Method
supportDS2
* 是否支持DSBridge2.0脚本 * @param enable true:使用2.0脚本,false: 3.0脚本是默认的
library/src/main/ets/entity/WebViewInterface.ts:32
Method
supportDS2
(enable: boolean)
library/src/main/ets/entity/BaseBridge.ts:37