Skip to main content
Version: v3

cancel

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Delete the notification message identified by the specified ID in the notification center.

info

permission code: device:os.notification

Type

function cancel(alarmId: number | Array<number>): void

Example

import { cancel } from '@zos/notification'

cancel(alarmID)