From 6f08261db05741b10c9fb4f79b41c43f7fa03ed6 Mon Sep 17 00:00:00 2001 From: Gloria Date: Tue, 31 Jan 2023 14:37:51 +0800 Subject: [PATCH] fixed bf97d80 from https://gitee.com/wusongqing/docs/pulls/14089 fixed a4d76f5 from https://gitee.com/wusongqing/docs/pulls/14088 Update docs against 13589 Signed-off-by: wusongqing --- .../apis/js-apis-deviceUsageStatistics.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md b/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md index f9a998f37c..813b44ccf0 100644 --- a/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md +++ b/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md @@ -1,4 +1,4 @@ -# @ohos.deviceUsageStatistics (Device Usage Statistics) +# @ohos.bundleState (Device Usage Statistics) This module provides APIs for collecting statistics on device usage. @@ -454,6 +454,20 @@ Provides the usage duration information of an application. | infosBeginTime | number | No | Time logged in the first application usage record in the **BundleActiveInfo** object.| | infosEndTime | number | No | Time logged in the last application usage record in the **BundleActiveInfo** object.| +### merge(deprecated) + +merge(toMerge: BundleStateInfo): void + +Merges the device usage statistics of applications with the same bundle name. + +**System capability**: SystemCapability.ResourceSchedule.UsageStatistics.App + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| toMerge | [BundleStateInfo](#bundlestateinfo) | Yes| Device usage statistics to merge.| + ## BundleActiveState Provides information about an application event. -- GitLab