Class: ServiceClient

优质
小牛编辑
136浏览
2023-12-01

ServiceClient


new ServiceClient()

ServiceClient 服务类

Methods


bindService(serviceUri, callback)

bindService 绑定服务

Parameters:
NameTypeDescription
serviceUriString服务URI
callbackFuntion回调函数

startService(serviceUri, params)

startService 启动服务

Parameters:
NameTypeDescription
serviceUriString服务URI
paramsObject参数

stopService(serviceUri)

stopService 停止服务

Parameters:
NameTypeDescription
serviceUriString服务URI

unbindService(serviceUri)

unbindService 解绑服务

Parameters:
NameTypeDescription
serviceUriString服务URI