当前仅显示指定条件回帖 [ 展开查看全部 ]
文件名称:
broadcast.md
所在目录:
Openharmony v1.0 / docs / docs-en / api / api-SmartVision-Devices
文件大小:
6.59 KB
下载地址:
文本预览:
# Broadcast
## **Overview**
Provides data subscription and data push for services.
With this module, the [Service](service.md), [Feature](feature.md), or other modules can broadcast events or data. All services that listen to these events or data can receive these broadcasts.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures
## Typedefs
## Enumerations
## **Details**
## **Typedef Documentation**
## Topic
```
typedef uint32 [Topic](broadcast.md#gaf03f5bc94cad32ab628a6cdee09b0542)
```
**Description:**
Indicates the topic of an event or data, which is used to distinguish different types of events or data.
## **Enumeration Type Documentation**
## BroadcastErrCode
```
enum [BroadcastErrCode](broadcast.md#ga98f7a28020aa045ad049d116e1ca666d)
```
**Description:**
Enumerates error codes unique to the Broadcast service.
## **Overview**
Provides data subscription and data push for services.
With this module, the [Service](service.md), [Feature](feature.md), or other modules can broadcast events or data. All services that listen to these events or data can receive these broadcasts.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures
## Typedefs
Indicates the topic of an event or data, which is used to distinguish different types of events or data. |
## Enumerations
BroadcastErrCode { EC_ALREADY_SUBSCRIBED = EC_SUCCESS + 1 } | Enumerates error codes unique to the Broadcast service. |
## **Details**
## **Typedef Documentation**
## Topic
```
typedef uint32 [Topic](broadcast.md#gaf03f5bc94cad32ab628a6cdee09b0542)
```
**Description:**
Indicates the topic of an event or data, which is used to distinguish different types of events or data.
## **Enumeration Type Documentation**
## BroadcastErrCode
```
enum [BroadcastErrCode](broadcast.md#ga98f7a28020aa045ad049d116e1ca666d)
```
**Description:**
Enumerates error codes unique to the Broadcast service.
EC_ALREADY_SUBSCRIBED | Error code showing that a topic has been subscribed to |
点赞
回复
X