public class CommonEventSupport extends Object
You need to use these constants as the input values of action when you call
Intent.setAction(String) in CommonEventData#CommonEventData(Intent) to
set the common event content to be published, or when you call MatchingSkills#addEvent(String) in
CommonEventSubscribeInfo#CommonEventSubscribeInfo(MatchingSkills) to
set the filter criteria for subscribing to common events.
Intent.setAction(String)SystemCapability.Notification#CES| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
COMMON_EVENT_ABILITY_ADDED |
Indicates the
action of a common event that an ability has been added. |
static String |
COMMON_EVENT_ABILITY_REMOVED |
Indicates the
action of a common event that an ability has been removed. |
static String |
COMMON_EVENT_ABILITY_UPDATED |
Indicates the
action of a common event that an ability has been updated. |
static String |
COMMON_EVENT_ACCOUNT_DELETED |
Indicates the
action of a common event that the account is deleted. |
static String |
COMMON_EVENT_AIRPLANE_MODE_CHANGED |
Indicates the
action of a common event that the airplane mode of the device has changed. |
static String |
COMMON_EVENT_BATTERY_CHANGED |
Indicates the
action of a common event that the charging state, level,
and other information about the battery have changed. |
static String |
COMMON_EVENT_BATTERY_LOW |
Indicates the
action of a common event that the battery level is low. |
static String |
COMMON_EVENT_BATTERY_OKAY |
Indicates the
action of a common event that the battery exit the low state. |
static String |
COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE |
Indicates the
action of a common event that the audio state of Bluetooth A2DP Sink has changed. |
static String |
COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE |
Indicates the
action of a common event that the connection state of Bluetooth A2DP Sink has changed. |
static String |
COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE |
Indicates the
action of a common event that the playing state of Bluetooth A2DP Sink has changed. |
static String |
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE |
Indicates the
action of a common event that the AVRCP connection state of Bluetooth A2DP
has changed. |
static String |
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE |
Indicates the
action of a common event that the audio codec state of Bluetooth A2DP has changed. |
static String |
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE |
Indicates the
action of a common event about the connection state of Bluetooth A2DP. |
static String |
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE |
Indicates the
action of a common event that the device connected using Bluetooth A2DP
is active. |
static String |
COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE |
Indicates the
action of a common event that the playing state of Bluetooth A2DP has changed. |
static String |
COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE |
Indicates the
action of a common event that the connection state of Bluetooth A2DP has changed. |
static String |
COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE |
Indicates the
action of a common event about the connection state of
Bluetooth handsfree communication. |
static String |
COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE |
Indicates the
action of a common event that the device connected to
the Bluetooth handsfree is active. |
static String |
COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE |
Indicates the
action of a common event that the calling state of a Bluetooth handsfree has changed. |
static String |
COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT |
Indicates the
action of a common event that the audio gateway state of a Bluetooth handsfree
has changed. |
static String |
COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE |
Indicates the
action of a common event that the audio state of a Bluetooth handsfree has changed. |
static String |
COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE |
Indicates the
action of a common event that the connection state of a Bluetooth handsfree
has changed. |
static String |
COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED |
Indicates the
action of a common event that the Bluetooth scanning is finished on the device. |
static String |
COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED |
Indicates the
action of a common event that the Bluetooth scanning has been started on the device. |
static String |
COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE |
Indicates the
action of a common event that the Bluetooth adapter name of the device has changed. |
static String |
COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE |
Indicates the
action of a common event about the requests for the user to turn off Bluetooth. |
static String |
COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE |
Indicates the
action of a common event about the requests for the user to allow Bluetooth
to be scanned. |
static String |
COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE |
Indicates the
action of a common event about the requests for the user to turn on Bluetooth. |
static String |
COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE |
Indicates the
action of a common event that the Bluetooth scanning mode of a device has changed. |
static String |
COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE |
Indicates the
action of a common event that the state of a Bluetooth adapter has been changed,
for example, Bluetooth has been turned on or off. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED |
Indicates the
action of a common event that a low level (ACL) connection has been established
with a remote Bluetooth device. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED |
Indicates the
action of a common event that a low level (ACL) connection has been disconnected
from a remote Bluetooth device. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE |
Indicates the
action of a common event that the battery level of a remote Bluetooth device
has been retrieved for the first time or has been changed since the last retrieval. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE |
Indicates the
action of a common event that the Bluetooth class of a remote Bluetooth device
has changed. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL |
Indicates the
action of a common event that the connection to a remote Bluetooth device
has been canceled. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY |
Indicates the
action of a common event about the response to the connection request from
a remote Bluetooth device. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ |
Indicates the
action of a common event about the connection request from
a remote Bluetooth device. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED |
Indicates the
action of a common event that a remote Bluetooth device has been discovered. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE |
Indicates the
action of a common event that the friendly name of a remote Bluetooth device
has been retrieved for the first time or has been changed since the last retrieval. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE |
Indicates the
action of a common event that the connection state of a remote Bluetooth device
has changed. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL |
Indicates the
action of a common event that Bluetooth pairing is canceled. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ |
Indicates the
action of a common event about the pairing request from a remote Bluetooth device. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT |
Indicates the
action of a common event about the SDP state of a remote Bluetooth device. |
static String |
COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE |
Indicates the
action of a common event about the UUID connection state of a remote Bluetooth device. |
static String |
COMMON_EVENT_BOOT_COMPLETED |
Indicates the
action of a common event that the user has finished booting and
the system has been loaded. |
static String |
COMMON_EVENT_BUNDLE_REMOVED |
Indicates the
action of a common event that an installed bundle has been uninstalled
from the device with the application data remained. |
static String |
COMMON_EVENT_CHARGING |
Indicates the
action of a common event that the system starts charging the battery. |
static String |
COMMON_EVENT_CLOSE_SYSTEM_DIALOGS |
Indicates the
action of a common event that a user closes a temporary system dialog box. |
static String |
COMMON_EVENT_CONFIGURATION_CHANGED |
Indicates the
action of a common event that the device state (for example, orientation and locale)
has changed. |
static String |
COMMON_EVENT_DATE_CHANGED |
Indicates the
action of a common event that the system date has changed. |
static String |
COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED |
Indicates the
action of a common event that the system idle mode has changed. |
static String |
COMMON_EVENT_DISCHARGING |
Indicates the
action of a common event that the system stops charging the battery. |
static String |
COMMON_EVENT_DISK_BAD_REMOVAL |
Indicates the
action of a common event that an external storage device was removed without
being unmounted. |
static String |
COMMON_EVENT_DISK_EJECT |
Indicates the
action of a common event that an external storage device was ejected. |
static String |
COMMON_EVENT_DISK_MOUNTED |
Indicates the
action of a common event that an external storage device was mounted. |
static String |
COMMON_EVENT_DISK_REMOVED |
Indicates the
action of a common event that an external storage device was removed. |
static String |
COMMON_EVENT_DISK_UNMOUNTABLE |
Indicates the
action of a common event that an external storage device becomes unmountable. |
static String |
COMMON_EVENT_DISK_UNMOUNTED |
Indicates the
action of a common event that an external storage device was unmounted. |
static String |
COMMON_EVENT_DRIVE_MODE |
Indicates the
action of a common event that the system is in driving mode. |
static String |
COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE |
Indicates the
action of a common event that applications installed on the external storage
become available for the system. |
static String |
COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE |
Indicates the
action of a common event that applications installed on the external storage
become unavailable for the system. |
static String |
COMMON_EVENT_FOUNDATION_READY |
Indicates the
action of a common event that the foundation is ready. |
static String |
COMMON_EVENT_HOME_MODE |
Indicates the
action of a common event that the system is in home mode. |
static String |
COMMON_EVENT_HWID_LOGIN |
Indicates the
action of a common event about a login of a user with Ohos account ID. |
static String |
COMMON_EVENT_HWID_LOGOFF |
Indicates the
action of a common event about a logoff of a Ohos account ID. |
static String |
COMMON_EVENT_HWID_LOGOUT |
Indicates the
action of a common event about a logout of a user with Ohos account ID. |
static String |
COMMON_EVENT_HWID_TOKEN_INVALID |
Indicates the
action of a common event that the Ohos account ID is invalid. |
static String |
COMMON_EVENT_IVI_ACTIVE |
Indicates the
action of a common event that the battery service is active. |
static String |
COMMON_EVENT_IVI_LASTMODE_SAVE |
Indicates the
action of a common event that a third-party application is instructed to save its last
mode. |
static String |
COMMON_EVENT_IVI_SLEEP |
Indicates the
action of a common event that the in-vehicle infotainment (IVI) system of
a vehicle is sleeping. |
static String |
COMMON_EVENT_IVI_STANDBY |
Indicates the
action of a common event that a third-party application is instructed to pause the
current work. |
static String |
COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL |
Indicates the
action of a common event that the in-vehicle system has an extreme temperature. |
static String |
COMMON_EVENT_IVI_TEMPERATURE_RECOVERY |
Indicates the
action of a common event that the temperature of the in-vehicle system is
restored to normal. |
static String |
COMMON_EVENT_IVI_VOLTAGE_ABNORMAL |
Indicates the
action of a common event that the voltage of the vehicle power system is abnormal. |
static String |
COMMON_EVENT_IVI_VOLTAGE_RECOVERY |
Indicates the
action of a common event that the voltage of the vehicle power system is
restored to normal. |
static String |
COMMON_EVENT_LOCALE_CHANGED |
Indicates the
action of a common event that the device locale has changed. |
static String |
COMMON_EVENT_LOCATION_MODE_STATE_CHANGED |
Indicates the
action of a common event that the location mode of the system has changed. |
static String |
COMMON_EVENT_LOCKED_BOOT_COMPLETED |
Indicates the
action of a common event that the user has finished booting and the system
has been loaded but the screen is still locked. |
static String |
COMMON_EVENT_MANAGE_PACKAGE_STORAGE |
Indicates the
action of a common event that the device storage is insufficient. |
static String |
COMMON_EVENT_MY_PACKAGE_REPLACED |
Indicates the
action of a common event that a new version of your application package
has replaced the previous one. |
static String |
COMMON_EVENT_MY_PACKAGE_SUSPENDED |
Indicates the
action of a common event that an application package has been suspended. |
static String |
COMMON_EVENT_MY_PACKAGE_UNSUSPENDED |
Indicates the
action of a common event that an application package has not been suspended. |
static String |
COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED |
Indicates the
action of a common event that the state of the device NFC adapter has changed. |
static String |
COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED |
Indicates the
action of a common event that the NFC RF field is detected to be in the disabled state. |
static String |
COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED |
Indicates the
action of a common event that the NFC RF field is detected to be in the enabled state. |
static String |
COMMON_EVENT_OFFICE_MODE |
Indicates the
action of a common event that the system is in office mode. |
static String |
COMMON_EVENT_PACKAGE_ADDED |
Indicates the
action of a common event that a new application package has been installed
on the device. |
static String |
COMMON_EVENT_PACKAGE_CHANGED |
Indicates the
action of a common event that an application package
has been changed (for example, a component in the package has been enabled or disabled). |
static String |
COMMON_EVENT_PACKAGE_DATA_CLEARED |
Indicates the
action of a common event that the user has cleared the application package data. |
static String |
COMMON_EVENT_PACKAGE_FIRST_LAUNCH |
Indicates the
action of a common event that an installed application is started for the first time. |
static String |
COMMON_EVENT_PACKAGE_FULLY_REMOVED |
Indicates the
action of a common event that an installed application,
including both the application data and code, have been completely uninstalled from the device. |
static String |
COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION |
Indicates the
action of a common event that an application requires system verification. |
static String |
COMMON_EVENT_PACKAGE_REMOVED |
Indicates the
action of a common event that an installed application has been uninstalled
from the device with the application data remained. |
static String |
COMMON_EVENT_PACKAGE_REPLACED |
Indicates the
action of a common event that a new version of an installed application package
has replaced the previous one on the device. |
static String |
COMMON_EVENT_PACKAGE_RESTARTED |
Indicates the
action of a common event that the user has restarted the application package and
killed all its processes. |
static String |
COMMON_EVENT_PACKAGE_VERIFIED |
Indicates the
action of a common event that an application has been verified by the system. |
static String |
COMMON_EVENT_PACKAGES_SUSPENDED |
Indicates the
action of a common event that application packages have been suspended. |
static String |
COMMON_EVENT_PACKAGES_UNSUSPENDED |
Indicates the
action of a common event that application packages have not been suspended. |
static String |
COMMON_EVENT_POWER_CONNECTED |
Indicates the
action of a common event that the device is connected to the external power. |
static String |
COMMON_EVENT_POWER_DISCONNECTED |
Indicates the
action of a common event that the device is disconnected from the external power. |
static String |
COMMON_EVENT_POWER_SAVE_MODE_CHANGED |
Indicates the
action of a common event that the power save mode of the system has changed. |
static String |
COMMON_EVENT_SCREEN_OFF |
Indicates the
action of a common event that the device screen is off and the device is sleeping. |
static String |
COMMON_EVENT_SCREEN_ON |
Indicates the
action of a common event that the device screen is on and the device is interactive. |
static String |
COMMON_EVENT_SHUTDOWN |
Indicates the
action of a common event that the device is being shut down and
the final shutdown will proceed. |
static String |
COMMON_EVENT_TIME_CHANGED |
Indicates the
action of a common event that the system time is set. |
static String |
COMMON_EVENT_TIME_TICK |
Indicates the
action of a common event that the system time has changed. |
static String |
COMMON_EVENT_TIMEZONE_CHANGED |
Indicates the
action of a common event that the system time zone has changed. |
static String |
COMMON_EVENT_UID_REMOVED |
Indicates the
action of a common event that a user ID has been removed from the system. |
static String |
COMMON_EVENT_USB_ACCESSORY_ATTACHED |
Indicates the
action of a common event that a USB accessory has been attached. |
static String |
COMMON_EVENT_USB_ACCESSORY_DETACHED |
Indicates the
action of a common event that a USB accessory has been detached. |
static String |
COMMON_EVENT_USB_DEVICE_ATTACHED |
Indicates the
action of a common event that a USB device has been attached when the user device
functions as a USB host. |
static String |
COMMON_EVENT_USB_DEVICE_DETACHED |
Indicates the
action of a common event that a USB device has been detached when the user device
functions as a USB host. |
static String |
COMMON_EVENT_USER_ADDED |
Indicates the
action of a common event that a user has been added to the system. |
static String |
COMMON_EVENT_USER_BACKGROUND |
Indicates the
action of a common event that the user has been brought to the background. |
static String |
COMMON_EVENT_USER_FOREGROUND |
Indicates the
action of a common event that the user has been brought to the foreground. |
static String |
COMMON_EVENT_USER_PRESENT |
Indicates the
action of a common event that the user unlocks the device. |
static String |
COMMON_EVENT_USER_REMOVED |
Indicates the
action of a common event that a user has been removed from the system. |
static String |
COMMON_EVENT_USER_STARTED |
Indicates the
action of a common event that the user has been started. |
static String |
COMMON_EVENT_USER_STARTING |
Indicates the
action of a common event that the user is going to be started. |
static String |
COMMON_EVENT_USER_STOPPED |
Indicates the
action of a common event that the user has been stopped. |
static String |
COMMON_EVENT_USER_STOPPING |
Indicates the
action of a common event that the user is going to be stopped. |
static String |
COMMON_EVENT_USER_SWITCHED |
Indicates the
action of a common event that a user switch is happening. |
static String |
COMMON_EVENT_USER_UNLOCKED |
Indicates the
action of a common event that the credential-encrypted storage
has become unlocked for the current user when the device is unlocked after being restarted. |
static String |
COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED |
Indicates the
action of a common event that the account visible changed. |
static String |
COMMON_EVENT_WIFI_AP_STAT_JOIN |
Indicates the
action of a common event that a client has joined the Wi-Fi hotspot of the
current device. |
static String |
COMMON_EVENT_WIFI_AP_STAT_LEAVE |
Indicates the
action of a common event that a client has dropped connection to the Wi-Fi hotspot of
the current device. |
static String |
COMMON_EVENT_WIFI_CONN_STATE |
Indicates the
action of a common event that the Wi-Fi connection state has changed. |
static String |
COMMON_EVENT_WIFI_HOTSPOT_STATE |
Indicates the
action of a common event about the Wi-Fi hotspot state, such as enabled or disabled. |
static String |
COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE |
Indicates the
action of a common event that the state of MPLink (an enhanced Wi-Fi feature)
has changed. |
static String |
COMMON_EVENT_WIFI_P2P_CONN_STATE |
Indicates the
action of a common event that the Wi-Fi P2P connection state has changed. |
static String |
COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED |
Indicates that the Wi-Fi P2P current device state change.
|
static String |
COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED |
Indicates that the Wi-Fi P2P group info is changed.
|
static String |
COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED |
Indicates that the Wi-Fi P2P discovery state change.
|
static String |
COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED |
Indicates that the Wi-Fi P2P peers state change.
|
static String |
COMMON_EVENT_WIFI_P2P_STATE_CHANGED |
Indicates the
action of a common event about the Wi-Fi P2P state, such as enabled and disabled. |
static String |
COMMON_EVENT_WIFI_POWER_STATE |
Indicates the
action of a common event about the Wi-Fi state, such as enabled and disabled. |
static String |
COMMON_EVENT_WIFI_RSSI_VALUE |
Indicates the
action of a common event that the Wi-Fi signal strength (RSSI) has changed. |
static String |
COMMON_EVENT_WIFI_SCAN_FINISHED |
Indicates the
action of a common event that the Wi-Fi access point has been scanned and proven to
be available. |
public static final String COMMON_EVENT_ABILITY_ADDED
action of a common event that an ability has been added.
To subscribe to this common event, your application must have the
ohos.permission.LISTEN_BUNDLE_CHANGE permission. This is a protected common event, which can be
sent only by the system.
public static final String COMMON_EVENT_ABILITY_REMOVED
action of a common event that an ability has been removed.
To subscribe to this common event, your application must have the
ohos.permission.LISTEN_BUNDLE_CHANGE permission. This is a protected common event, which can be
sent only by the system.
public static final String COMMON_EVENT_ABILITY_UPDATED
action of a common event that an ability has been updated.
To subscribe to this common event, your application must have the
ohos.permission.LISTEN_BUNDLE_CHANGE permission. This is a protected common event, which can be
sent only by the system.
public static final String COMMON_EVENT_ACCOUNT_DELETED
action of a common event that the account is deleted.
To subscribe to this common event, your application must have the
ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS permission.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_AIRPLANE_MODE_CHANGED
action of a common event that the airplane mode of the device has changed.
By subscribing to this common event, your application will be notified every time the user turns on or off the airplane mode of the device.
Your application can use the value ofstate to determine airplane mode state. The value true
indicates that the airplane mode is turned on, and false indicates that it is turned off.
This common event can be triggered only by system applications.
public static final String COMMON_EVENT_BATTERY_CHANGED
action of a common event that the charging state, level,
and other information about the battery have changed.
This common event can only be published by the system.
public static final String COMMON_EVENT_BATTERY_LOW
action of a common event that the battery level is low.
This common event can only be published by the system.
public static final String COMMON_EVENT_BATTERY_OKAY
action of a common event that the battery exit the low state.
If a device enters a low battery state, COMMON_EVENT_BATTERY_LOW is published.
After the battery is charged and enters a normal state, COMMON_EVENT_BATTERY_OKAY is published.
This common event can only be published by the system.
public static final String COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE
action of a common event that the audio state of Bluetooth A2DP Sink has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE
action of a common event that the connection state of Bluetooth A2DP Sink has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE
action of a common event that the playing state of Bluetooth A2DP Sink has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE
action of a common event that the AVRCP connection state of Bluetooth A2DP
has changed.public static final String COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE
action of a common event that the audio codec state of Bluetooth A2DP has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE
action of a common event about the connection state of Bluetooth A2DP.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE
action of a common event that the device connected using Bluetooth A2DP
is active.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE
action of a common event that the playing state of Bluetooth A2DP has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE
action of a common event that the calling state of a Bluetooth handsfree has changed.public static final String COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT
action of a common event that the audio gateway state of a Bluetooth handsfree
has changed.public static final String COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE
action of a common event that the audio state of a Bluetooth handsfree has changed.public static final String COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE
action of a common event that the connection state of a Bluetooth handsfree
has changed.public static final String COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE
action of a common event that the connection state of Bluetooth A2DP has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE
action of a common event about the connection state of
Bluetooth handsfree communication.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE
action of a common event that the device connected to
the Bluetooth handsfree is active.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED
action of a common event that the Bluetooth scanning is finished on the device.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED
action of a common event that the Bluetooth scanning has been started on the device.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE
action of a common event that the Bluetooth adapter name of the device has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE
action of a common event about the requests for the user to turn off Bluetooth.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE
action of a common event about the requests for the user to allow Bluetooth
to be scanned.public static final String COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE
action of a common event about the requests for the user to turn on Bluetooth.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE
action of a common event that the Bluetooth scanning mode of a device has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE
action of a common event that the state of a Bluetooth adapter has been changed,
for example, Bluetooth has been turned on or off.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED
action of a common event that a low level (ACL) connection has been established
with a remote Bluetooth device.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED
action of a common event that a low level (ACL) connection has been disconnected
from a remote Bluetooth device.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE
action of a common event that the battery level of a remote Bluetooth device
has been retrieved for the first time or has been changed since the last retrieval.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE
action of a common event that the Bluetooth class of a remote Bluetooth device
has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL
action of a common event that the connection to a remote Bluetooth device
has been canceled.public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY
action of a common event about the response to the connection request from
a remote Bluetooth device.public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ
action of a common event about the connection request from
a remote Bluetooth device.public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED
action of a common event that a remote Bluetooth device has been discovered.
To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH
and ohos.permission.LOCATION permissions.
public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE
action of a common event that the friendly name of a remote Bluetooth device
has been retrieved for the first time or has been changed since the last retrieval.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL
action of a common event that Bluetooth pairing is canceled.public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ
action of a common event about the pairing request from a remote Bluetooth device.
To subscribe to this common event, your application must have the
ohos.permission.DISCOVER_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE
action of a common event that the connection state of a remote Bluetooth device
has changed.
To subscribe to this common event, your application must have the
ohos.permission.USE_BLUETOOTH permission.
public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT
action of a common event about the SDP state of a remote Bluetooth device.public static final String COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE
action of a common event about the UUID connection state of a remote Bluetooth device.
To subscribe to this common event, your application must have the
ohos.permission.DISCOVER_BLUETOOTH permission.
public static final String COMMON_EVENT_BOOT_COMPLETED
action of a common event that the user has finished booting and
the system has been loaded.
If the screen is locked after system startup, the common event COMMON_EVENT_LOCKED_BOOT_COMPLETED
will be published. This common event can only be published by the system. To subscribe to this common event,
your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED permission.
public static final String COMMON_EVENT_BUNDLE_REMOVED
action of a common event that an installed bundle has been uninstalled
from the device with the application data remained.
This common event can only be published by the system.
public static final String COMMON_EVENT_CHARGING
action of a common event that the system starts charging the battery.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_CLOSE_SYSTEM_DIALOGS
action of a common event that a user closes a temporary system dialog box.
This common event can only be published by the system.
public static final String COMMON_EVENT_CONFIGURATION_CHANGED
action of a common event that the device state (for example, orientation and locale)
has changed.
When a change occurs, the system UI needs to adapt to the change. This common event can only be published by the system.
public static final String COMMON_EVENT_DATE_CHANGED
action of a common event that the system date has changed.
This common event can only be published by the system.
public static final String COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED
action of a common event that the system idle mode has changed.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_DISCHARGING
action of a common event that the system stops charging the battery.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_DISK_BAD_REMOVAL
action of a common event that an external storage device was removed without
being unmounted.
This common event can be published only by system applications. To subscribe to this common event,
your application must have the ohos.permission.WRITE_USER_STORAGE or
ohos.permission.READ_USER_STORAGE permission.
public static final String COMMON_EVENT_DISK_EJECT
action of a common event that an external storage device was ejected.
This common event can be published only by system applications. To subscribe to this common event,
your application must have the ohos.permission.WRITE_USER_STORAGE or
ohos.permission.READ_USER_STORAGE permission.
public static final String COMMON_EVENT_DISK_MOUNTED
action of a common event that an external storage device was mounted.
This common event can be published only by system applications. To subscribe to this common event,
your application must have the ohos.permission.WRITE_USER_STORAGE or
ohos.permission.READ_USER_STORAGE permission.
public static final String COMMON_EVENT_DISK_REMOVED
action of a common event that an external storage device was removed.
This common event can be published only by system applications. To subscribe to this common event,
your application must have the ohos.permission.WRITE_USER_STORAGE or
ohos.permission.READ_USER_STORAGE permission.
public static final String COMMON_EVENT_DISK_UNMOUNTABLE
action of a common event that an external storage device becomes unmountable.
This common event can be published only by system applications. To subscribe to this common event,
your application must have the ohos.permission.WRITE_USER_STORAGE or
ohos.permission.READ_USER_STORAGE permission.
public static final String COMMON_EVENT_DISK_UNMOUNTED
action of a common event that an external storage device was unmounted.
This common event can be published only by system applications. To subscribe to this common event,
your application must have the ohos.permission.WRITE_USER_STORAGE or
ohos.permission.READ_USER_STORAGE permission.
public static final String COMMON_EVENT_DRIVE_MODE
action of a common event that the system is in driving mode.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE
action of a common event that applications installed on the external storage
become available for the system.
This common event can only be published by the system.
public static final String COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE
action of a common event that applications installed on the external storage
become unavailable for the system.
This common event can only be published by the system.
public static final String COMMON_EVENT_FOUNDATION_READY
action of a common event that the foundation is ready.
To subscribe to this common event, your application must have the
ohos.permission.RECEIVER_STARTUP_COMPLETED permission.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_HOME_MODE
action of a common event that the system is in home mode. Currently the action
is unsupported.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_HWID_LOGIN
action of a common event about a login of a user with Ohos account ID.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_HWID_LOGOFF
action of a common event about a logoff of a Ohos account ID.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_HWID_LOGOUT
action of a common event about a logout of a user with Ohos account ID.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_HWID_TOKEN_INVALID
action of a common event that the Ohos account ID is invalid.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_IVI_ACTIVE
action of a common event that the battery service is active.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_IVI_LASTMODE_SAVE
action of a common event that a third-party application is instructed to save its last
mode. For example, if the engine of a vehicle is turned off, its power management system publishes this common
event to instruct the system UI to save its last mode information.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_IVI_SLEEP
action of a common event that the in-vehicle infotainment (IVI) system of
a vehicle is sleeping.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_IVI_STANDBY
action of a common event that a third-party application is instructed to pause the
current work. For example, if the engine of a vehicle is turned off, its power management system publishes
this common event to instruct the system UI to pause the current audio and video playback.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL
action of a common event that the in-vehicle system has an extreme temperature.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_IVI_TEMPERATURE_RECOVERY
action of a common event that the temperature of the in-vehicle system is
restored to normal.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_IVI_VOLTAGE_ABNORMAL
action of a common event that the voltage of the vehicle power system is abnormal.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_IVI_VOLTAGE_RECOVERY
action of a common event that the voltage of the vehicle power system is
restored to normal.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_LOCALE_CHANGED
action of a common event that the device locale has changed.
This common event can only be published by the system.
public static final String COMMON_EVENT_LOCATION_MODE_STATE_CHANGED
action of a common event that the location mode of the system has changed.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_LOCKED_BOOT_COMPLETED
action of a common event that the user has finished booting and the system
has been loaded but the screen is still locked.
If the system has been loaded but the screen is still locked, the common events
COMMON_EVENT_USER_UNLOCKED and COMMON_EVENT_BOOT_COMPLETED will be published
after the screen is unlocked. This common event can only be published by the system. To subscribe to
this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
permission.
public static final String COMMON_EVENT_MANAGE_PACKAGE_STORAGE
action of a common event that the device storage is insufficient.public static final String COMMON_EVENT_MY_PACKAGE_REPLACED
action of a common event that a new version of your application package
has replaced the previous one. This common event is sent only to the application that was replaced.
Unlike COMMON_EVENT_PACKAGE_REPLACED, the published data does not contain
the application package name. This common event can only be published by the system.
public static final String COMMON_EVENT_MY_PACKAGE_SUSPENDED
action of a common event that an application package has been suspended.
This is sent only to the application.
This common event can only be published by the system.
public static final String COMMON_EVENT_MY_PACKAGE_UNSUSPENDED
action of a common event that an application package has not been suspended.
This is sent only to the application.
This common event can only be published by the system.
public static final String COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED
action of a common event that the state of the device NFC adapter has changed.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED
action of a common event that the NFC RF field is detected to be in the disabled state.
To subscribe to this common event, your application must have the
ohos.permission.MANAGE_SECURE_SETTINGS permission. This is a protected common event, which can be
sent only by the system.
public static final String COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED
action of a common event that the NFC RF field is detected to be in the enabled state.
To subscribe to this common event, your application must have the
ohos.permission.MANAGE_SECURE_SETTINGS permission. This is a protected common event, which can be
sent only by the system.
public static final String COMMON_EVENT_OFFICE_MODE
action of a common event that the system is in office mode. Currently the action
is unsupported.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_PACKAGES_SUSPENDED
action of a common event that application packages have been suspended.
This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGES_UNSUSPENDED
action of a common event that application packages have not been suspended.
This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_ADDED
action of a common event that a new application package has been installed
on the device.
This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_CHANGED
action of a common event that an application package
has been changed (for example, a component in the package has been enabled or disabled).
This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_DATA_CLEARED
action of a common event that the user has cleared the application package data.
This common event is published after COMMON_EVENT_PACKAGE_RESTARTED is triggered and
the data has been cleared. This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_FIRST_LAUNCH
action of a common event that an installed application is started for the first time.
This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_FULLY_REMOVED
action of a common event that an installed application,
including both the application data and code, have been completely uninstalled from the device.
This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION
action of a common event that an application requires system verification.
This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_REMOVED
action of a common event that an installed application has been uninstalled
from the device with the application data remained.
This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_REPLACED
action of a common event that a new version of an installed application package
has replaced the previous one on the device.
The published data contains the application package name. This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_RESTARTED
action of a common event that the user has restarted the application package and
killed all its processes.
This common event can only be published by the system.
public static final String COMMON_EVENT_PACKAGE_VERIFIED
action of a common event that an application has been verified by the system.
This common event can only be published by the system.
public static final String COMMON_EVENT_POWER_CONNECTED
action of a common event that the device is connected to the external power.
This common event can only be published by the system.
public static final String COMMON_EVENT_POWER_DISCONNECTED
action of a common event that the device is disconnected from the external power.
This common event can only be published by the system.
public static final String COMMON_EVENT_POWER_SAVE_MODE_CHANGED
action of a common event that the power save mode of the system has changed.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_SCREEN_OFF
action of a common event that the device screen is off and the device is sleeping.
This common event can only be published by the system.
public static final String COMMON_EVENT_SCREEN_ON
action of a common event that the device screen is on and the device is interactive.
This common event can only be published by the system.
public static final String COMMON_EVENT_SHUTDOWN
action of a common event that the device is being shut down and
the final shutdown will proceed.
This is different from sleeping. All unsaved data will be lost after shut down. This common event can only be published by the system.
public static final String COMMON_EVENT_TIMEZONE_CHANGED
action of a common event that the system time zone has changed.
This common event can only be published by the system.
public static final String COMMON_EVENT_TIME_CHANGED
action of a common event that the system time is set.
This common event can only be published by the system.
public static final String COMMON_EVENT_TIME_TICK
action of a common event that the system time has changed.
This common event is published by the system every minute.
This common event can only be published by the system.
public static final String COMMON_EVENT_UID_REMOVED
action of a common event that a user ID has been removed from the system.
This common event can only be published by the system.
public static final String COMMON_EVENT_USB_ACCESSORY_ATTACHED
action of a common event that a USB accessory has been attached.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_USB_ACCESSORY_DETACHED
action of a common event that a USB accessory has been detached.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_USB_DEVICE_ATTACHED
action of a common event that a USB device has been attached when the user device
functions as a USB host.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_USB_DEVICE_DETACHED
action of a common event that a USB device has been detached when the user device
functions as a USB host.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_USER_ADDED
action of a common event that a user has been added to the system.
To subscribe to this common event, your application must have the
ohos.permission.MANAGE_USERS permission.
public static final String COMMON_EVENT_USER_BACKGROUND
action of a common event that the user has been brought to the background.
This is suitable for the multi-user scenario.
public static final String COMMON_EVENT_USER_FOREGROUND
action of a common event that the user has been brought to the foreground.
This is suitable for the multi-user scenario.
public static final String COMMON_EVENT_USER_PRESENT
action of a common event that the user unlocks the device.
This common event can only be published by the system.
public static final String COMMON_EVENT_USER_REMOVED
action of a common event that a user has been removed from the system.
To subscribe to this common event, your application must have the
ohos.permission.MANAGE_USERS permission.
public static final String COMMON_EVENT_USER_STARTED
action of a common event that the user has been started.
This is suitable for the multi-user scenario.
public static final String COMMON_EVENT_USER_STARTING
action of a common event that the user is going to be started.
This is suitable for the multi-user scenario. To subscribe to this common event, your application must have
the ohos.permission.INTERACT_ACROSS_USERS permission.
public static final String COMMON_EVENT_USER_STOPPED
action of a common event that the user has been stopped.
This is suitable for the multi-user scenario.
public static final String COMMON_EVENT_USER_STOPPING
action of a common event that the user is going to be stopped.
This is suitable for the multi-user scenario. To subscribe to this common event, your application must have
the ohos.permission.INTERACT_ACROSS_USERS permission.
public static final String COMMON_EVENT_USER_SWITCHED
action of a common event that a user switch is happening.
This is suitable for the multi-user scenario. To subscribe to this common event, your application must have
the ohos.permission.MANAGE_USERS permission.
public static final String COMMON_EVENT_USER_UNLOCKED
action of a common event that the credential-encrypted storage
has become unlocked for the current user when the device is unlocked after being restarted.
This is suitable for the multi-user scenario.
public static final String COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED
action of a common event that the account visible changed.
To subscribe to this common event, your application must have the
ohos.permission.GET_APP_ACCOUNTS permission.
This is a protected common event, which can be sent only by the system.
public static final String COMMON_EVENT_WIFI_AP_STAT_JOIN
action of a common event that a client has joined the Wi-Fi hotspot of the
current device. You can register this common event to listen for information about the clients joining
your hotspot.
To subscribe to this common event, your application must have the
ohos.permission.GET_WIFI_INFO permission.
public static final String COMMON_EVENT_WIFI_AP_STAT_LEAVE
action of a common event that a client has dropped connection to the Wi-Fi hotspot of
the current device. You can register this common event to listen for information about the clients
leaving your hotspot.
To subscribe to this common event, your application must have the
ohos.permission.GET_WIFI_INFO permission.
public static final String COMMON_EVENT_WIFI_CONN_STATE
action of a common event that the Wi-Fi connection state has changed.
You can register this common event to listen for Wi-Fi connection state changes.
In this common event sent to you, the WifiEvents.PARAM_CONN_STATE key
of the IntentParams key-value pair carries specific information about the Wi-Fi connection state
change, and the value can be WifiEvents.STATE_DISCONNECTED (Wi-Fi disconnected)
or WifiEvents.STATE_CONNECTED (Wi-Fi connected).
WifiEvents.PARAM_CONN_STATE,
WifiEvents.STATE_DISCONNECTED,
WifiEvents.STATE_CONNECTED,
常量字段值public static final String COMMON_EVENT_WIFI_HOTSPOT_STATE
action of a common event about the Wi-Fi hotspot state, such as enabled or disabled.
You can register this common event to listen for Wi-Fi hotspot state changes.
In this common event sent to you, the WifiEvents.PARAM_HOTSPOT_STATE key
of the IntentParams key-value pair carries specific information about the Wi-Fi hotspot state change,
and the value can be WifiEvents.STATE_HOTSPOT_INACTIVE (Wi-Fi hotspot disabled)
or WifiEvents.STATE_HOTSPOT_ACTIVE (Wi-Fi hotspot enabled).
public static final String COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE
action of a common event that the state of MPLink (an enhanced Wi-Fi feature)
has changed. You can register this common event to listen for MPLink state changes of an application.
To subscribe to this common event, your application must have the
ohos.permission.MPLINK_CHANGE_STATE permission.
public static final String COMMON_EVENT_WIFI_P2P_CONN_STATE
action of a common event that the Wi-Fi P2P connection state has changed.
To subscribe to this common event, your application must have the
ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION permissions.
public static final String COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED
To subscribe to this common event, your application must have the
ohos.permission.GET_WIFI_INFO permission.
public static final String COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED
To subscribe to this common event, your application must have the
ohos.permission.GET_WIFI_INFO permission.
public static final String COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED
To subscribe to this common event, your application must have the
ohos.permission.GET_WIFI_INFO permission.
public static final String COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED
To subscribe to this common event, your application must have the
ohos.permission.GET_WIFI_INFO permission.
public static final String COMMON_EVENT_WIFI_P2P_STATE_CHANGED
action of a common event about the Wi-Fi P2P state, such as enabled and disabled.
You can register this common event to listen for Wi-Fi P2P state changes.
To subscribe to this common event, your application must have the
ohos.permission.GET_WIFI_INFO permission.
public static final String COMMON_EVENT_WIFI_POWER_STATE
action of a common event about the Wi-Fi state, such as enabled and disabled.
You can register this common event to listen for Wi-Fi state changes.public static final String COMMON_EVENT_WIFI_RSSI_VALUE
action of a common event that the Wi-Fi signal strength (RSSI) has changed.
You can register this common event to listen for Wi-Fi RSSI changes of the connected network.
In this common event sent to you, the WifiEvents.PARAM_RSSI_VALUE key
of the IntentParams key-value pair is associated with a specific value of the new RSSI.
To subscribe to this common event, your application must have the
ohos.permission.GET_WIFI_INFO permission.
WifiEvents.PARAM_RSSI_VALUE,
常量字段值public static final String COMMON_EVENT_WIFI_SCAN_FINISHED
action of a common event that the Wi-Fi access point has been scanned and proven to
be available. You can register this common event to listen for the Wi-Fi scanning result.
In this common event sent to you, the WifiEvents.PARAM_SCAN_STATE key
of the IntentParams key-value pair carries specific information about the Wi-Fi scanning result,
and the value can be WifiEvents.STATE_SCAN_FAIL (scanning failed) or
WifiEvents.STATE_SCAN_SUCCESS (scanning succeeded).
To subscribe to this common event, your application must have the
ohos.permission.LOCATION permission.
WifiEvents.PARAM_SCAN_STATE,
WifiEvents.STATE_SCAN_FAIL,
WifiEvents.STATE_SCAN_SUCCESS,
常量字段值