Signed-off-by: zhouliting <zhouliting5@huawei.com>

This commit is contained in:
周礼亭 2022-05-16 03:08:19 +00:00 committed by Gitee
parent 564338466e
commit 079d086391
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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) {