From 615114635adec6d25f5fd897641d14dba6a9ee8b Mon Sep 17 00:00:00 2001 From: zengyawen Date: Wed, 1 Dec 2021 09:11:39 +0000 Subject: [PATCH] update zh-cn/application-dev/ability/service-ability.md. Signed-off-by: zengyawen --- zh-cn/application-dev/ability/service-ability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/ability/service-ability.md b/zh-cn/application-dev/ability/service-ability.md index e0c861c6ae..908875bb42 100644 --- a/zh-cn/application-dev/ability/service-ability.md +++ b/zh-cn/application-dev/ability/service-ability.md @@ -145,7 +145,7 @@ var connId = featureAbility.connectAbility( ); ``` -同时,Service侧也需要在onConnect()时返回IRemoteObject,从而定义与Service进行通信的接口。onConnect()需要返回一个IRemoteObject对象,HarmonyOS提供了IRemoteObject的默认实现,用户可以通过继承rpc.RemoteObject来创建自定义的实现类。 +同时,Service侧也需要在onConnect()时返回IRemoteObject,从而定义与Service进行通信的接口。onConnect()需要返回一个IRemoteObject对象,OpenHarmony提供了IRemoteObject的默认实现,用户可以通过继承rpc.RemoteObject来创建自定义的实现类。 Service侧把自身的实例返回给调用侧的代码示例如下: -- GitLab