harmony 鸿蒙@ohos.net.statistics (Traffic Management)

2022-10-28 浏览 (688)

@ohos.net.statistics (Traffic Management)

The statistics module provides APIs to query real-time or historical data traffic by the specified network interface card (NIC) or user ID (UID).

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 statistics from "@ohos.net.statistics";

statistics.getIfaceRxBytes10+

getIfaceRxBytes(nic: string, callback: AsyncCallback<number>): void;

Obtains the real-time downlink data traffic of the specified NIC. This API uses an asynchronous callback to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
nicstringYesNIC name.
callbackAsyncCallback<number>YesCallback used to return the result. If the operation is successful, error is undefined and stats is the real-time downlink data traffic of the NIC in bytes. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.
2103012Get iface name failed.

Example

import { BusinessError } from '@ohos.base';
import statistics from '@ohos.net.statistics';

statistics.getIfaceRxBytes("wlan0", (error: BusinessError, stats: number) => {
  console.log(JSON.stringify(error));
  console.log(JSON.stringify(stats));
});

statistics.getIfaceRxBytes10+

getIfaceRxBytes(nic: string): Promise<number>;

Obtains the real-time downlink data traffic of the specified NIC. This API uses a promise to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
nicstringYesNIC name.

Return value

TypeDescription
Promise<number>Promise used to return the result, which is the real-time downlink data traffic of the NIC in bytes.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.
2103012Get iface name failed.

Example

import statistics from '@ohos.net.statistics';

statistics.getIfaceRxBytes("wlan0").then((stats: number) => {
  console.log(JSON.stringify(stats));
});

statistics.getIfaceTxBytes10+

getIfaceTxBytes(nic: string, callback: AsyncCallback<number>): void;

Obtains the real-time uplink data traffic of the specified NIC. This API uses an asynchronous callback to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
nicstringYesNIC name.
callbackAsyncCallback<number>YesCallback used to return the result. If the operation is successful, error is undefined and stats is the real-time uplink data traffic of the NIC in bytes. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.
2103012Get iface name failed.

Example

import { BusinessError } from '@ohos.base';
import statistics from '@ohos.net.statistics';

statistics.getIfaceTxBytes("wlan0", (error: BusinessError, stats: number) => {
  console.log(JSON.stringify(error));
  console.log(JSON.stringify(stats));
});

statistics.getIfaceTxBytes10+

getIfaceTxBytes(nic: string): Promise<number>;

Obtains the real-time uplink data traffic of the specified NIC. This API uses a promise to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
nicstringYesNIC name.

Return value

TypeDescription
Promise<number>Promise used to return the result, which is the real-time uplink data traffic of the NIC in bytes.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.
2103012Get iface name failed.

Example

import statistics from '@ohos.net.statistics';

statistics.getIfaceTxBytes("wlan0").then((stats: number) => {
  console.log(JSON.stringify(stats));
});

statistics.getCellularRxBytes10+

getCellularRxBytes(callback: AsyncCallback<number>): void;

Obtains the real-time downlink data traffic of a cellular network. This API uses an asynchronous callback to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
callbackAsyncCallback<number>YesCallback used to return the result. If the operation is successful, error is undefined and stats is the real-time downlink data traffic of the cellular network in bytes. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.
2103012Get iface name failed.

Example

import { BusinessError } from '@ohos.base';
import statistics from '@ohos.net.statistics';

statistics.getCellularRxBytes((error: BusinessError, stats: number) => {
  console.log(JSON.stringify(error));
  console.log(JSON.stringify(stats));
});

statistics.getCellularRxBytes10+

getCellularRxBytes(): Promise<number>;

Obtains the real-time downlink data traffic of a cellular network. This API uses a promise to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Return value

TypeDescription
Promise<number>Promise used to return the result, which is the real-time downlink data traffic of the cellular network in bytes.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.
2103012Get iface name failed.

Example

import statistics from '@ohos.net.statistics';

statistics.getCellularRxBytes().then((stats: number) => {
  console.log(JSON.stringify(stats));
});

statistics.getCellularTxBytes10+

getCellularTxBytes(callback: AsyncCallback<number>): void;

Obtains the real-time uplink data traffic of a cellular network. This API uses an asynchronous callback to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
callbackAsyncCallback<number>YesCallback used to return the result. If the operation is successful, error is undefined and stats is the real-time uplink data traffic of the cellular network in bytes. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.
2103012Get iface name failed.

Example

import { BusinessError } from '@ohos.base';
import statistics from '@ohos.net.statistics';

statistics.getCellularTxBytes((error: BusinessError, stats: number) => {
  console.log(JSON.stringify(error));
  console.log(JSON.stringify(stats));
});

statistics.getCellularTxBytes10+

getCellularTxBytes(): Promise<number>;

Obtains the real-time uplink data traffic of a cellular network. This API uses a promise to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Return value

TypeDescription
Promise<number>Promise used to return the result, which is the real-time uplink data traffic of the cellular network in bytes.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.
2103012Get iface name failed.

Example

import statistics from '@ohos.net.statistics';

statistics.getCellularTxBytes().then((stats: number) => {
  console.log(JSON.stringify(stats));
});

statistics.getAllRxBytes10+

getAllRxBytes(callback: AsyncCallback<number>): void;

Obtains the real-time downlink data traffic of all NICs. This API uses an asynchronous callback to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
callbackAsyncCallback<number>YesCallback used to return the result. If the operation is successful, error is undefined and stats is the real-time downlink data traffic of all NICs in bytes. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.

Example

import statistics from '@ohos.net.statistics';
import { BusinessError } from '@ohos.base';

statistics.getAllRxBytes((error: BusinessError, stats: number) => {
  console.log(JSON.stringify(error));
  console.log(JSON.stringify(stats));
});

statistics.getAllRxBytes10+

getAllRxBytes(): Promise<number>;

Obtains the real-time downlink data traffic of all NICs. This API uses a promise to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Return value

TypeDescription
Promise<number>Promise used to return the result, which is the real-time downlink data traffic of all NICs in bytes.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.

Example

import statistics from '@ohos.net.statistics';

statistics.getCellularRxBytes().then((stats: number) => {
  console.log(JSON.stringify(stats));
});

statistics.getAllTxBytes10+

getAllTxBytes(callback: AsyncCallback<number>): void;

Obtains the real-time uplink data traffic of all NICs. This API uses an asynchronous callback to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
callbackAsyncCallback<number>YesCallback used to return the result. If the operation is successful, error is undefined and stats is the real-time uplink data traffic of all NICs in bytes. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.

Example

import { BusinessError } from '@ohos.base';
import statistics from '@ohos.net.statistics';

statistics.getAllTxBytes((error: BusinessError, stats: number) => {
  console.log(JSON.stringify(error));
  console.log(JSON.stringify(stats));
});

statistics.getAllTxBytes10+

getAllTxBytes(): Promise<number>;

Obtains the real-time uplink data traffic of all NICs. This API uses a promise to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Return value

TypeDescription
Promise<number>Promise used to return the result, which is the real-time uplink data traffic of all NICs in bytes.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.

Example

import statistics from '@ohos.net.statistics';

statistics.getAllTxBytes().then((stats: number) => {
  console.log(JSON.stringify(stats));
});

statistics.getUidRxBytes10+

getUidRxBytes(uid: number, callback: AsyncCallback<number>): void;

Obtains the real-time downlink data traffic of the specified application. This API uses an asynchronous callback to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
uidnumberYesApplication UID.
callbackAsyncCallback<number>YesCallback used to return the result. If the operation is successful, error is undefined and stats is the real-time downlink data traffic of the application in bytes. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.

Example

import { BusinessError } from '@ohos.base';
import statistics from '@ohos.net.statistics';

statistics.getUidRxBytes(20010038, (error: BusinessError, stats: number) => {
  console.log(JSON.stringify(error));
  console.log(JSON.stringify(stats));
});

statistics.getUidRxBytes10+

getUidRxBytes(uid: number): Promise<number>;

Obtains the real-time downlink data traffic of the specified application. This API uses a promise to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
uidnumberYesApplication UID.

Return value

TypeDescription
Promise<number>Promise used to return the result, which is the real-time downlink data traffic of the application in bytes.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.

Example

import statistics from '@ohos.net.statistics';

statistics.getUidRxBytes(20010038).then((stats: number) => {
  console.log(JSON.stringify(stats));
});

statistics.getUidTxBytes10+

getUidTxBytes(uid: number, callback: AsyncCallback<number>): void;

Obtains the real-time uplink data traffic of the specified application. This API uses an asynchronous callback to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
uidnumberYesApplication UID.
callbackAsyncCallback<number>YesCallback used to return the result. If the operation is successful, error is undefined and stats is the real-time uplink data traffic of the application in bytes. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.

Example

import { BusinessError } from '@ohos.base';
import statistics from '@ohos.net.statistics';

statistics.getUidTxBytes(20010038, (error: BusinessError, stats: number) => {
  console.log(JSON.stringify(error));
  console.log(JSON.stringify(stats));
});

statistics.getUidTxBytes10+

getUidTxBytes(uid: number): Promise<number>;

Obtains the real-time uplink data traffic of the specified application. This API uses a promise to return the result.

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
uidnumberYesApplication UID.

Return value

TypeDescription
Promise<number>Promise used to return the result, which is the real-time uplink data traffic of the application in bytes.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103005Failed to read map.
2103011Failed to create map.

Example

import statistics from '@ohos.net.statistics';

statistics.getUidTxBytes(20010038).then((stats: number) => {
  console.log(JSON.stringify(stats));
});

statistics.on('netStatsChange')10+

on(type: 'netStatsChange', callback: Callback<{ iface: string, uid?: number }>): void

Subscribes to traffic change events.

System API: This is a system API.

Required permissions: ohos.permission.GET_NETWORK_STATS

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
typestringYesEvent type. This field has a fixed value of netStatsChange.
callbackCallback<{ iface: string, uid?: number }>YesCallback invoked when the traffic changes.
iface: NIC name.
uid: application UID.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
201Permission denied.
202Non-system applications use system APIs.
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.

Example

import statistics from '@ohos.net.statistics';

class IFace {
  iface: string = ""
  uid?: number = 0
}
statistics.on('netStatsChange', (data: IFace) => {
  console.log('on netStatsChange' + JSON.stringify(data));
});

statistics.off('netStatsChange')10+

off(type: 'netStatsChange', callback?: Callback<{ iface: string, uid?: number }>): void;

Unsubscribes from traffic change events.

System API: This is a system API.

Required permissions: ohos.permission.GET_NETWORK_STATS

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
typestringYesEvent type. This field has a fixed value of netStatsChange.
callbackCallback<{ iface: string, uid?: number }>NoCallback invoked when the traffic changes.
iface: NIC name.
uid: application UID.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
201Permission denied.
202Non-system applications use system APIs.
401Parameter error.
2100002Operation failed. Cannot connect to service.
2100003System internal error.

Example

import statistics from '@ohos.net.statistics';

class IFace {
  iface: string = ""
  uid?: number = 0
}
let callback: (data: IFace) => void = (data: IFace) => {
    console.log("on netStatsChange, iFace:" + data.iface + " uid: " + data.uid);
}
statistics.on('netStatsChange', callback);
// You can pass the callback of the on method to cancel listening for a certain type of callback. If you do not pass the callback, you will cancel listening for all callbacks.
statistics.off('netStatsChange', callback);
statistics.off('netStatsChange');

statistics.getTrafficStatsByIface10+

getTrafficStatsByIface(ifaceInfo: IfaceInfo, callback: AsyncCallback<NetStatsInfo>): void;

Obtains the historical data traffic of the specified NIC. This API uses an asynchronous callback to return the result.

System API: This is a system API.

Required permissions: ohos.permission.GET_NETWORK_STATS

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
ifaceInfoIfaceInfoYesNIC information. For details, see IfaceInfo.
callbackAsyncCallback<NetStatsInfo>YesCallback used to return the result. If the operation is successful, error is undefined and statsInfo is the historical data traffic of the NIC. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
201Permission denied.
202Non-system applications use system APIs.
401Parameter error.
2100001Invalid parameter value.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103017Read data from database failed.

Example

import { BusinessError } from '@ohos.base';
import statistics from '@ohos.net.statistics';

let iFaceInfo: statistics.IfaceInfo

statistics.getTrafficStatsByIface(iFaceInfo, (error: BusinessError, statsInfo: statistics.NetStatsInfo) => {
  console.log(JSON.stringify(error));
  console.log(
    "getTrafficStatsByIface bytes of received = " +
    JSON.stringify(statsInfo.rxBytes)
  );
  console.log(
    "getTrafficStatsByIface bytes of sent = " +
    JSON.stringify(statsInfo.txBytes)
  );
  console.log(
    "getTrafficStatsByIface packets of received = " +
    JSON.stringify(statsInfo.rxPackets)
  );
  console.log(
    "getTrafficStatsByIface packets of sent = " +
    JSON.stringify(statsInfo.txPackets)
  );
});

statistics.getTrafficStatsByIface10+

getTrafficStatsByIface(ifaceInfo: IfaceInfo): Promise<NetStatsInfo>;

Obtains the historical data traffic of the specified NIC. This API uses a promise to return the result.

System API: This is a system API.

Required permissions: ohos.permission.GET_NETWORK_STATS

System capability: SystemCapability.Communication.NetManager.Core

NameTypeMandatoryDescription
ifaceInfoIfaceInfoYesNIC information. For details, see IfaceInfo.

Return value

TypeDescription
Promise<NetStatsInfo>Promise used to return the result, which is the historical data traffic of the specified NIC.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
201Permission denied.
202Non-system applications use system APIs.
401Parameter error.
2100001Invalid parameter value.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103017Read data from database failed.

Example

import statistics from '@ohos.net.statistics';

let iFaceInfo: statistics.IfaceInfo
statistics.getTrafficStatsByIface(iFaceInfo).then((statsInfo: statistics.NetStatsInfo) => {
  console.log(
    "getTrafficStatsByIface bytes of received = " +
    JSON.stringify(statsInfo.rxBytes)
  );
  console.log(
    "getTrafficStatsByIface bytes of sent = " +
    JSON.stringify(statsInfo.txBytes)
  );
  console.log(
    "getTrafficStatsByIface packets of received = " +
    JSON.stringify(statsInfo.rxPackets)
  );
  console.log(
    "getTrafficStatsByIface packets of sent = " +
    JSON.stringify(statsInfo.txPackets)
  );
});

statistics.getTrafficStatsByUid10+

getTrafficStatsByUid(uidInfo: UidInfo, callback: AsyncCallback<NetStatsInfo>): void;

Obtains the historical data traffic of the specified application. This API uses an asynchronous callback to return the result.

System API: This is a system API.

Required permissions: ohos.permission.GET_NETWORK_STATS

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
uidInfoUidInfoYesApplication information. For details, see UidInfo.
callbackAsyncCallback<NetStatsInfo>YesCallback used to return the result. If the operation is successful, error is undefined and statsInfo is the historical data traffic of the application. Otherwise, error is an error object.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
201Permission denied.
202Non-system applications use system APIs.
401Parameter error.
2100001Invalid parameter value.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103017Read data from database failed.

Example

import { BusinessError } from '@ohos.base';
import statistics from '@ohos.net.statistics';

let uidInfo: statistics.UidInfo
uidInfo.uid = 20010037

statistics.getTrafficStatsByUid(
  uidInfo,
  (error: BusinessError, statsInfo: statistics.NetStatsInfo) => {
    console.log(JSON.stringify(error));
    console.log(
      "getTrafficStatsByUid bytes of received = " +
      JSON.stringify(statsInfo.rxBytes)
    );
    console.log(
      "getTrafficStatsByUid bytes of sent = " +
      JSON.stringify(statsInfo.txBytes)
    );
    console.log(
      "getTrafficStatsByUid packets of received = " +
      JSON.stringify(statsInfo.rxPackets)
    );
    console.log(
      "getTrafficStatsByUid packets of sent = " +
      JSON.stringify(statsInfo.txPackets)
    );
  }
);

statistics.getTrafficStatsByUid10+

getTrafficStatsByUid(uidInfo: UidInfo): Promise<NetStatsInfo>;

Obtains the historical data traffic of the specified application. This API uses a promise to return the result.

System API: This is a system API.

Required permissions: ohos.permission.GET_NETWORK_STATS

System capability: SystemCapability.Communication.NetManager.Core

Parameters

NameTypeMandatoryDescription
uidInfoUidInfoYesApplication information. For details, see UidInfo.

Return value

TypeDescription
Promise<NetStatsInfo>Promise used to return the result, which is the historical data traffic of the specified NIC.

Error codes

For details about the error codes, see Traffic Management Error Codes.

IDError Message
201Permission denied.
202Non-system applications use system APIs.
401Parameter error.
2100001Invalid parameter value.
2100002Operation failed. Cannot connect to service.
2100003System internal error.
2103017Read data from database failed.

Example

import statistics from '@ohos.net.statistics'

let uidInfo: statistics.UidInfo
uidInfo.uid = 20010037

statistics.getTrafficStatsByUid(uidInfo).then((statsInfo: statistics.NetStatsInfo) => {
  console.log("getTrafficStatsByUid bytes of received = " + JSON.stringify(statsInfo.rxBytes));
  console.log("getTrafficStatsByUid bytes of sent = " + JSON.stringify(statsInfo.txBytes));
  console.log("getTrafficStatsByUid packets of received = " + JSON.stringify(statsInfo.rxPackets));
  console.log("getTrafficStatsByUid packets of sent = " + JSON.stringify(statsInfo.txPackets));
})

IfaceInfo10+

Defines the parameters for querying historical traffic of an NIC.

System API: This is a system API.

System capability: SystemCapability.Communication.NetManager.Core

NameTypeMandatoryDescription
ifacestringYesNIC name.
startTimenumberYesStart time of the query, which is a timestamp in seconds.
endTimenumberYesEnd time of the query, which is a timestamp in seconds.

UidInfo10+

Defines the parameters for querying historical traffic of an application.

System API: This is a system API.

System capability: SystemCapability.Communication.NetManager.Core

NameTypeMandatoryDescription
ifaceInfoIfaceInfo<IfaceInfo>YesNIC name and query time range.
uidnumberYesApplication UID.

NetStatsInfo10+

Defines the historical traffic information.

System API: This is a system API.

System capability: SystemCapability.Communication.NetManager.Core

NameTypeMandatoryDescription
rxBytesnumberYesDownlink traffic data, in bytes.
txBytesnumberYesUplink traffic data, in bytes.
rxPacketsnumberYesNumber of downlink packets.
txPacketsnumberYesNumber of uplink packets.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙APIs

harmony 鸿蒙System Common Events (To Be Deprecated Soon)

harmony 鸿蒙System Common Events

harmony 鸿蒙API Reference Document Description

harmony 鸿蒙Enterprise Device Management Overview (for System Applications Only)

harmony 鸿蒙BundleStatusCallback

harmony 鸿蒙@ohos.bundle.innerBundleManager (innerBundleManager)

harmony 鸿蒙@ohos.distributedBundle (Distributed Bundle Management)

harmony 鸿蒙@ohos.bundle (Bundle)

harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (EnterpriseAdminExtensionAbility)

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/60ab4187aec24e469b7b6c8034ce1871