Card Push
Updated: 2022-08-16 14:47:23
Feature Overview
- This feature only supports users with roles of Lecturer/Guest/Teaching Assistant/Administrator to push cards and stop pushing.
Code Example
Note: Before starting the following steps, global initialization settings must be performed. Please refer to the documentation.
Basic Flow
const app = new PushCard();
// 订阅事件监听。
app
// 更新卡片列表
.on('update-list', () => {})
// 获取卡片列表。
app.getCardList();
// 推送卡片
app.pushCard(id);
// 停止推送卡片
app.stopCard(id);
