Skip to main content
版本:v3+

getAllNotifications

API_LEVEL 3.0 开始支持,API 兼容性请参考 API_LEVEL。

获取当前应用已发送的还留在通知中心里通知 ID。

信息

权限代码: device:os.notification

类型​

function getAllNotifications(): Array<number>

代码示例​

import { getAllNotifications } from '@zos/notification'

getAllNotifications()