mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 07:50:24 +00:00
Signed-off-by: zhouliting <zhouliting5@huawei.com>
This commit is contained in:
parent
564338466e
commit
079d086391
@ -207,8 +207,10 @@ deps = [
|
||||
|
||||
```
|
||||
import rpc from "@ohos.rpc"
|
||||
onConnect(want) {
|
||||
return new Stub("rpcTestAbility")
|
||||
onConnect(want: Want) {
|
||||
console.log("ZidlTest ServiceAbility onConnect, want:" + want.abilityName)
|
||||
var robj:rpc.RemoteObject = new Stub("rpcTestAbility")
|
||||
return robj
|
||||
}
|
||||
class Stub extends rpc.RemoteObject {
|
||||
constructor(descriptor) {
|
||||
|
Loading…
Reference in New Issue
Block a user