harmony 鸿蒙Common Events of the Time and Time Zone Subsystem

  • 2023-10-30
  • 浏览 (369)

Common Events of the Time and Time Zone Subsystem

This document lists the common system events provided by the time and time zone subsystem to applications. Applications can use APIs to subscribe to common system events.

COMMON_EVENT_TIME_CHANGED

Indicates that the system time has been set.

  • Value: usual.event.TIME_CHANGED
  • Required subscriber permissions: none

When the system time is set, the event notification service is triggered to publish this event.

COMMON_EVENT_TIME_TICK

Indicates that the system time has changed.

  • Value: usual.event.TIME_TICK
  • Required subscriber permissions: none

On devices where the unit of time is minutes, when the system time changes, the event notification service is triggered to publish this event.

COMMON_EVENT_TIMEZONE_CHANGED

Indicates that the system time zone has changed.

  • Value: usual.event.TIMEZONE_CHANGED
  • Required subscriber permissions: none

When the system time zone changes, the event notification service is triggered to publish this event.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Common Events

harmony 鸿蒙Common Events of the Ability Subsystem

harmony 鸿蒙Common Events of the Account Subsystem

harmony 鸿蒙Common Events of the Notification Service

harmony 鸿蒙Common Events of the Bundle Management Subsystem

harmony 鸿蒙Common Events of the File Management Subsystem

harmony 鸿蒙Common Events of the Language Subsystem

harmony 鸿蒙Common Events of the SMS Application

harmony 鸿蒙Common Events of the Network Management Subsystem

harmony 鸿蒙Common Events of the NFC Subsystem

0  赞