• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-1,2241,119

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024646 169

README_zh.mdD12-May-2024978 2915

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024289 1515

README.md

1# RPC
2
3### Introduction
4
5This sample shows the data exchange between the frontend and backend of a device. After the offering and quantity are selected at the frontend, the backend calculates the result and displays it at the frontend.
6
7### Usage
8
91. Touch the blank box of an offering type. The offering selection list is displayed. Select an offering. The corresponding content is displayed in the blank box.
102. Touch **+** or **-** next to the offering selection box and select the quantity of the offering.
113. Touch **Confirm an order**. The total price is displayed.
12
13### Constraints
14
15This sample can only be run on standard-system devices.
16

README_zh.md

1# RPC连接
2
3### 简介
4
5本示例展示了同一设备中前后台的数据交互,用户前台选择相应的商品与数目,后台计算出结果,回传给前台展示。效果图如下:
6
7![](screenshots/device/main.png) ![](screenshots/device/flexlist.png)
8
9### 相关概念
10
11RPC通信:该类提供读写基础类型及数组、IPC对象、接口描述符和自定义序列化对象的方法。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
191. 点击商品种类的空白方框,弹出商品选择列表,选择点击对应的商品,空白方框显示相应内容。
20
212. 点击商品选择框后的 **+** 或  **-** 按钮,选择商品所对应的数量。
22
233. 点击 **Confirm an order** 按钮,根据相应的菜品数量与单价,计算出总价并显示。
24
25### 约束与限制
26
271.本示例仅支持在标准系统上运行。
28
292.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。