@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...

    接口 CompanionNotification

    请求 Host 展示的固定类别通知。

    页面只选择语义类别,通知标题、正文、图标、按钮、声音和其他系统展示细节均由 Host 根据当前 Mini-program、Companion 与平台规则生成。该对象不是原生 Notification options,也不允许页面 注入任意通知文本。

    interface CompanionNotification {
        category: CompanionNotificationCategory;
    }
    索引

    属性

    属性

    固定通知类别:completed 表示任务完成,failed 表示失败,stopped 表示已停止, attention 表示需要用户关注。Host 负责把类别转换成最终本地化通知内容。