From 56981c9210d8674b66195f246b5de1dc09c776e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BD=B3=E4=BC=9F?= Date: Thu, 19 Jun 2025 10:53:33 +0800 Subject: [PATCH] =?UTF-8?q?Description:=E5=BA=9F=E5=BC=83device=E5=92=8Csy?= =?UTF-8?q?stemparameter=20IssueNo:https://gitee.com/openharmony/interface?= =?UTF-8?q?=5Fsdk-js/issues/ICG9NU=20Binary=20Source:No=20Signed-off-by:?= =?UTF-8?q?=20songjiawei9=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.systemparameter.d.ts | 2 ++ api/@system.device.d.ts | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/api/@ohos.systemparameter.d.ts b/api/@ohos.systemparameter.d.ts index 87f3308b04..eaa50485ed 100644 --- a/api/@ohos.systemparameter.d.ts +++ b/api/@ohos.systemparameter.d.ts @@ -27,6 +27,7 @@ import { AsyncCallback, BusinessError } from './@ohos.base'; * @syscap SystemCapability.Startup.SystemInfo * @systemapi Hide this for inner system use. * @since 6 + * @deprecated since 9 */ declare namespace systemParameter { /** @@ -88,6 +89,7 @@ declare namespace systemParameter { * @syscap SystemCapability.Startup.SystemInfo * @systemapi Hide this for inner system use. * @since 6 + * @deprecated since 9 */ function setSync(key: string, value: string): void; diff --git a/api/@system.device.d.ts b/api/@system.device.d.ts index d3d6348e0f..2f873d6afb 100644 --- a/api/@system.device.d.ts +++ b/api/@system.device.d.ts @@ -22,6 +22,7 @@ * @interface DeviceResponse * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ export interface DeviceResponse { /** @@ -30,6 +31,7 @@ export interface DeviceResponse { * @type { string } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ brand: string; @@ -39,6 +41,7 @@ export interface DeviceResponse { * @type { string } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ manufacturer: string; @@ -48,6 +51,7 @@ export interface DeviceResponse { * @type { string } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ model: string; @@ -57,6 +61,7 @@ export interface DeviceResponse { * @type { string } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ product: string; @@ -66,6 +71,7 @@ export interface DeviceResponse { * @type { string } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 4 + * @deprecated since 6 */ language: string; @@ -75,6 +81,7 @@ export interface DeviceResponse { * @type { string } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 4 + * @deprecated since 6 */ region: string; @@ -84,6 +91,7 @@ export interface DeviceResponse { * @type { number } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ windowWidth: number; @@ -93,6 +101,7 @@ export interface DeviceResponse { * @type { number } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ windowHeight: number; @@ -102,6 +111,7 @@ export interface DeviceResponse { * @type { number } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 4 + * @deprecated since 6 */ screenDensity: number; @@ -113,6 +123,7 @@ export interface DeviceResponse { * @type { 'rect' | 'circle' } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 4 + * @deprecated since 6 */ screenShape: 'rect' | 'circle'; @@ -122,6 +133,7 @@ export interface DeviceResponse { * @type { number } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 4 + * @deprecated since 6 */ apiVersion: number; @@ -143,6 +155,7 @@ export interface DeviceResponse { * @type { string } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 4 + * @deprecated since 6 */ deviceType: string; } @@ -151,6 +164,7 @@ export interface DeviceResponse { * @interface GetDeviceOptions * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ export interface GetDeviceOptions { /** @@ -159,6 +173,7 @@ export interface GetDeviceOptions { * @type { ?function } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ success?: (data: DeviceResponse) => void; @@ -168,6 +183,7 @@ export interface GetDeviceOptions { * @type { ?function } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ fail?: (data: any, code: number) => void; @@ -177,6 +193,7 @@ export interface GetDeviceOptions { * @type { ?function } * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ complete?: () => void; } @@ -186,6 +203,7 @@ export interface GetDeviceOptions { * * @syscap SystemCapability.Startup.SystemInfo.Lite * @since 3 + * @deprecated since 6 */ export default class Device { /** -- Gitee