harmony 鸿蒙Common Events of the NFC Subsystem
Common Events of the NFC Subsystem
This document lists the common system events provided by the NFC subsystem to applications. Applications can use APIs to subscribe to common system events.
COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED
Indicates that the state of the device NFC adapter has changed.
- Value: usual.event.nfc.action.ADAPTER_STATE_CHANGED
- Required subscriber permissions: none
When the state of the device NFC adapter changes, the event notification service is triggered to publish this event.
COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED
Indicates that the NFC RF field is on.
- Value: usual.event.nfc.action.RF_FIELD_ON_DETECTED
- Required subscriber permissions: ohos.permission.MANAGE_SECURE_SETTINGS
When the NFC RF field becomes available, the event notification service is triggered to publish this event.
COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED
Indicates that the NFC RF field is off.
- Value: usual.event.nfc.action.RF_FIELD_OFF_DETECTED
- Required subscriber permissions: ohos.permission.MANAGE_SECURE_SETTINGS
When the NFC RF field becomes unavailable, the event notification service is triggered to publish this event.
你可能感兴趣的鸿蒙文章
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
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦