文件最后提交记录最后更新时间
!858 901适配 * Merge branch 'master' of gitee.com:openharmony/app_samples into master * nativeAPI、multiMedia * 901适配 * 格式 * 修改package.json的格式 * 901适配 3 年前
!982 适配991,image规避文件沙箱对文件命名作出限制 * update picture * update 991 and bugfix image 3 年前
!596 修改测试测出的Sample问题,readme格式 名字大小写 ,commonEvent位置挪动 * [fix]:[屏幕截图README里边ets应改为eTS] * 删掉不需要上传的文件 * 解决冲突 * [fix]:[修改测试出的问题] * [chore]:[工程适配] 4 年前
!966 README整改 * update README_zh.md 3 年前
!598 适配工程CommonEvent、AirQuality、ResourceManager、Runninglock、Flashlight、JsHelloWorld API7到API8 * 修改clock readme * 修改AirQuality index 格式 * 修改图片后缀名为png * 适配工程API7CommontEvent、AirQuality、ResourceManager、Runninglock、Flashlight到API8 4 年前
!598 适配工程CommonEvent、AirQuality、ResourceManager、Runninglock、Flashlight、JsHelloWorld API7到API8 * 修改clock readme * 修改AirQuality index 格式 * 修改图片后缀名为png * 适配工程API7CommontEvent、AirQuality、ResourceManager、Runninglock、Flashlight到API8 4 年前
!858 901适配 * Merge branch 'master' of gitee.com:openharmony/app_samples into master * nativeAPI、multiMedia * 901适配 * 格式 * 修改package.json的格式 * 901适配 3 年前
README.md

eTS Common Event

Introduction

This sample shows how to use CommonEvent APIs in Extended TypeScript (eTS) to create subscribers and subscribe to, publish, and unsubscribe from common events.

Usage

  1. On the home screen of the sample app, touch Create subscriber and Subscribe. The execution result is displayed in the lower text box. Touch Publish common event and Publish specified common event. The common event information received after the common event is successfully published is displayed in the lower text box. Touch Unsubscribe to unsubscribe from the common event.

Constraints

This sample can only be run on standard-system devices.