From a7a25e6c4fb53afd8f9cb2fc7ad888957133532a Mon Sep 17 00:00:00 2001 From: chengjinsong2 Date: Mon, 15 May 2023 15:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9API=E8=B7=A8=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E6=A0=87=E8=AE=B0=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengjinsong2 Change-Id: I689641d7eaf24d54a72fee639b476e5bb58fac13 --- api/@ohos.deviceInfo.d.ts | 197 +++++++++++++++++++++++++++++++++----- 1 file changed, 171 insertions(+), 26 deletions(-) diff --git a/api/@ohos.deviceInfo.d.ts b/api/@ohos.deviceInfo.d.ts index 310860c6f..c5943f595 100644 --- a/api/@ohos.deviceInfo.d.ts +++ b/api/@ohos.deviceInfo.d.ts @@ -25,49 +25,81 @@ declare namespace deviceInfo { * which can be {@code phone} (or {@code default} for phones), {@code wearable}, {@code liteWearable}, * {@code tablet}, {@code tv}, {@code car}, or {@code smartVision}. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the device type represented by a string, + * which can be {@code phone} (or {@code default} for phones), {@code wearable}, {@code liteWearable}, + * {@code tablet}, {@code tv}, {@code car}, or {@code smartVision}. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const deviceType: string; /** * Obtains the device manufacturer represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 + */ + /** + * Obtains the device manufacturer represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 */ const manufacture: string; /** * Obtains the device brand represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the device brand represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const brand: string; /** * Obtains the external product series represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the external product series represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const marketName: string; /** * Obtains the product series represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the product series represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const productSeries: string; /** * Obtains the product model represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the product model represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const productModel: string; /** @@ -76,14 +108,24 @@ declare namespace deviceInfo { * @crossplatform * @since 6 */ + /** + * Obtains the software model represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @since 10 + */ const softwareModel: string; /** * Obtains the hardware model represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the hardware model represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const hardwareModel: string; /** @@ -105,41 +147,66 @@ declare namespace deviceInfo { /** * Obtains the bootloader version number represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the bootloader version number represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const bootloaderVersion: string; /** * Obtains the application binary interface (Abi) list represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the application binary interface (Abi) list represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const abiList: string; /** * Obtains the security patch level represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the security patch level represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const securityPatchTag: string; /** * Obtains the product version represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the product version represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const displayVersion: string; /** * Obtains the incremental version represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the incremental version represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const incrementalVersion: string; /** @@ -148,26 +215,45 @@ declare namespace deviceInfo { *

The OS release category can be {@code Release}, {@code Beta}, or {@code Canary}. * The specific release type may be {@code Release}, {@code Beta1}, or others alike. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the OS release type represented by a string. + * + *

The OS release category can be {@code Release}, {@code Beta}, or {@code Canary}. + * The specific release type may be {@code Release}, {@code Beta1}, or others alike. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const osReleaseType: string; /** * Obtains the OS version represented by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the OS version represented by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const osFullName: string; /** * Obtains the major (M) version number, which increases with any updates to the overall architecture. *

The M version number monotonically increases from 1 to 99. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the major (M) version number, which increases with any updates to the overall architecture. + *

The M version number monotonically increases from 1 to 99. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const majorVersion: number; /** @@ -175,91 +261,150 @@ declare namespace deviceInfo { * architecture or major features. *

The S version number monotonically increases from 0 to 99. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the senior (S) version number, which increases with any updates to the partial + * architecture or major features. + *

The S version number monotonically increases from 0 to 99. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const seniorVersion: number; /** * Obtains the feature (F) version number, which increases with any planned new features. *

The F version number monotonically increases from 0 or 1 to 99. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the feature (F) version number, which increases with any planned new features. + *

The F version number monotonically increases from 0 or 1 to 99. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const featureVersion: number; /** * Obtains the build (B) version number, which increases with each new development build. *

The B version number monotonically increases from 0 or 1 to 999. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the build (B) version number, which increases with each new development build. + *

The B version number monotonically increases from 0 or 1 to 999. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const buildVersion: number; /** * Obtains the SDK API version number. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the SDK API version number. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const sdkApiVersion: number; /** * Obtains the first API version number. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the first API version number. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const firstApiVersion: number; /** * Obtains the version ID by a string. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the version ID by a string. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const versionId: string; /** * Obtains the build types of the same baseline code. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the build types of the same baseline code. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const buildType: string; /** * Obtains the different build user of the same baseline code. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the different build user of the same baseline code. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const buildUser: string; /** * Obtains the different build host of the same baseline code. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the different build host of the same baseline code. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const buildHost: string; /** * Obtains the build time. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the build time. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const buildTime: string; /** * Obtains the version hash. * @syscap SystemCapability.Startup.SystemInfo - * @crossplatform * @since 6 */ + /** + * Obtains the version hash. + * @syscap SystemCapability.Startup.SystemInfo + * @crossplatform + * @since 10 + */ const buildRootHash: string; /** * Obtains the device udid.