Class: ServiceClient
优质
小牛编辑
141浏览
2023-12-01
ServiceClient
new ServiceClient()
ServiceClient 服务类
Methods
bindService(serviceUri, callback)
- bindService 绑定服务
Parameters:
Name Type Description serviceUri
String 服务URI callback
Funtion 回调函数
startService(serviceUri, params)
- startService 启动服务
Parameters:
Name Type Description serviceUri
String 服务URI params
Object 参数
stopService(serviceUri)
- stopService 停止服务
Parameters:
Name Type Description serviceUri
String 服务URI
unbindService(serviceUri)
- unbindService 解绑服务
Parameters:
Name Type Description serviceUri
String 服务URI