未验证 提交 28ee4dc3 编写于 作者: O openharmony_ci 提交者: Gitee

!11406 master:sample的下线:无需翻译

Merge pull request !11406 from 葛亚芳/master
...@@ -320,8 +320,4 @@ struct Index { ...@@ -320,8 +320,4 @@ struct Index {
} }
} }
} }
``` ```
\ No newline at end of file
## 相关实例
针对Stage模型Ability开发,有以下相关示例可供参考:
- [`StageCallAbility`:StageCallAbility的创建与使用(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/StageCallAbility)
...@@ -46,8 +46,7 @@ Caller及Callee功能如下:具体的API详见[接口文档](../reference/apis ...@@ -46,8 +46,7 @@ Caller及Callee功能如下:具体的API详见[接口文档](../reference/apis
Call调用的开发步骤: Call调用的开发步骤:
- 创建Callee被调用端。 - 创建Callee被调用端。
- 访问Callee被调用端。 - 访问Callee被调用端。
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 开发步骤章节中的示例代码片段是开发过程的步骤化展示,部分代码可能无法单独运行,完整工程代码请参考[相关实例](#相关实例)。
### 创建Callee被调用端 ### 创建Callee被调用端
Callee被调用端,需要实现指定方法的数据接收回调函数、数据的序列化及反序列化方法。在需要接收数据期间,通过on接口注册监听,无需接收数据时通过off接口解除监听。 Callee被调用端,需要实现指定方法的数据接收回调函数、数据的序列化及反序列化方法。在需要接收数据期间,通过on接口注册监听,无需接收数据时通过off接口解除监听。
**1. 配置Ability的启动模式** **1. 配置Ability的启动模式**
...@@ -280,8 +279,4 @@ releaseCall() { ...@@ -280,8 +279,4 @@ releaseCall() {
console.log(`caller release failed with ${error}`) console.log(`caller release failed with ${error}`)
} }
} }
``` ```
\ No newline at end of file
## 相关实例
针对Stage模型本地Call功能开发,有以下相关实例可供参考:
- [`StageCallAbility`:StageCallAbility的创建与使用(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/StageCallAbility)
...@@ -263,5 +263,3 @@ Notification.cancel(1, "label", cancelCallback) ...@@ -263,5 +263,3 @@ Notification.cancel(1, "label", cancelCallback)
针对通知开发,有以下相关可供参考: 针对通知开发,有以下相关可供参考:
- [`Notification:`订阅、发送通知(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/Notification/Notification) - [`Notification:`订阅、发送通知(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/Notification/Notification)
- [`Notification`:通知(ArkTS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/common/Notification)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册