harmony 鸿蒙Advanced Notification Manager

  • 2023-02-03
  • 浏览 (551)

Advanced Notification Manager

The Advanced Notification Manager enables you to print notifications and set notification parameters. It provides the notification debugging and testing capabilities, for example, printing published notification details, setting the number of notification caches, and enabling the notification functionality.

NOTE

Before using this tool, you must obtain the hdc tool and run the hdc shell command.

help

  • Function

Prints help information.

  • Method
  anm help

dump

  • Function

Prints information about notifications.

  • Method
  anm dump [<options>]

The table below describes the available options.

Name Description
-A/–active Information about all active notifications.
-R/–recent Information about recent notifications.
-D/–distributed Information about distributed notifications from other devices.
-b/–bundle Bundle name. Optional.
-u/–user-id User ID. Optional.
-h/–help Help information.
  • Example: Print information about active notifications.
  anm dump -A

anm-dump-A

Setting

  • Function

Sets notification parameters.

  • Method
  anm setting [<options>]

The table below describes the available options.

Name Description
-c/–recent-count Maximum number of recent notifications stored in the memory.
-e/–enable-notification Whether to enable the notification capability.
-h/–help Help information.
  • Example: Set the maximum number of recent notifications stored in the memory to 100.
  anm setting -c 100

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Debugging Tools

harmony 鸿蒙Ability Assistant

harmony 鸿蒙Bundle Manager

harmony 鸿蒙Common Event Manager

harmony 鸿蒙LLDB

harmony 鸿蒙Packing Tool

harmony 鸿蒙restool

harmony 鸿蒙Unpacking Tool

0  赞