harmony 鸿蒙@ohos.net.policy (Network Policy Management)
@ohos.net.policy (Network Policy Management)
The policy module provides APIs for managing network policies, through which you can control and manage the data volume used.
NOTE
The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version.
Modules to Import
import { policy } from '@kit.NetworkKit';
NetBearType
type NetBearType = connection.NetBearType
Network type.
System capability: SystemCapability.Communication.NetManager.Core
Type | Description |
---|---|
connection.NetBearType | Network type. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙NetConn_ConnectionProperties
harmony 鸿蒙NetConn_NetCapabilities
harmony 鸿蒙NetConn_NetConnCallback
harmony 鸿蒙NetConn_NetHandleList
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦