harmony 鸿蒙Common Events of the Network Management Subsystem

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

Common Events of the Network Management Subsystem

This document lists the common system events provided by the network management subsystem to applications. Applications can use APIs to subscribe to common system events.

COMMON_EVENT_CONNECTIVITY_CHANGE10+

Indicates that the network connection state has changed.

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

When the (Ethernet, Wi-Fi, or cellular) network connection state changes (to disconnected, connecting, or connected), the event notification service is triggered to publish this event.

COMMON_EVENT_AIRPLANE_MODE_CHANGED10+

Indicates that the airplane mode state has changed.

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

When the airplane mode is set, the event notification service is triggered to publish this event.

COMMON_EVENT_HTTP_PROXY_CHANGE10+

Indicates that the HTTP proxy configuration has changed.

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

When the configuration of the global or network-specific (such as Ethernet and Wi-Fi) HTTP proxy 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 NFC Subsystem

harmony 鸿蒙Common Events of the Power Management Subsystem

0  赞