Lines Matching refs:deviceInfo
1 # @ohos.deviceInfo (Device Information)
3 The **deviceInfo** module provides terminal device information query, which cannot be configured by…
14 import { deviceInfo } from '@kit.BasicServicesKit';
45 …e value is the first digit in **osFullName**. You are advised to use **deviceInfo.majorVersion** i…
46 … value is the second digit in **osFullName**. You are advised to use **deviceInfo.seniorVersion** …
47 …e value is the third digit in **osFullName**. You are advised to use **deviceInfo.featureVersion**…
48 … value is the fourth digit in **osFullName**. You are advised to use **deviceInfo.buildVersion** i…
68 import { deviceInfo } from '@kit.BasicServicesKit';
70 let deviceTypeInfo: string = deviceInfo.deviceType;
73 let manufactureInfo: string = deviceInfo.manufacture;
76 let brandInfo: string = deviceInfo.brand;
79 let marketNameInfo: string = deviceInfo.marketName;
80 console.info('the value of the deviceInfo marketName is :' + marketNameInfo);
82 let productSeriesInfo: string = deviceInfo.productSeries;
83 console.info('the value of the deviceInfo productSeries is :' + productSeriesInfo);
85 let productModelInfo: string = deviceInfo.productModel;
86 console.info('the value of the deviceInfo productModel is :' + productModelInfo);
88 let productModelAliasInfo: string = deviceInfo.productModelAlias;
89 console.info('the value of the deviceInfo productModelAlias is :' + productModelAliasInfo);
91 let softwareModelInfo: string = deviceInfo.softwareModel;
92 console.info('the value of the deviceInfo softwareModel is :' + softwareModelInfo);
94 let hardwareModelInfo: string = deviceInfo.hardwareModel;
95 console.info('the value of the deviceInfo hardwareModel is :' + hardwareModelInfo);
97 let serialInfo: string = deviceInfo.serial;
98 console.info('the value of the deviceInfo serial is :' + serialInfo);
100 let bootloaderVersionInfo: string = deviceInfo.bootloaderVersion;
101 console.info('the value of the deviceInfo bootloaderVersion is :' + bootloaderVersionInfo);
103 let abiListInfo: string = deviceInfo.abiList;
104 console.info('the value of the deviceInfo abiList is :' + abiListInfo);
106 let securityPatchTagInfo: string = deviceInfo.securityPatchTag;
107 console.info('the value of the deviceInfo securityPatchTag is :' + securityPatchTagInfo);
109 let displayVersionInfo: string = deviceInfo.displayVersion;
110 console.info('the value of the deviceInfo displayVersion is :' + displayVersionInfo);
112 let incrementalVersionInfo: string = deviceInfo.incrementalVersion;
113 console.info('the value of the deviceInfo incrementalVersion is :' + incrementalVersionInfo);
115 let osReleaseTypeInfo: string = deviceInfo.osReleaseType;
116 console.info('the value of the deviceInfo osReleaseType is :' + osReleaseTypeInfo);
118 let osFullNameInfo: string = deviceInfo.osFullName;
119 console.info('the value of the deviceInfo osFullName is :' + osFullNameInfo);
121 let majorVersionInfo: number = deviceInfo.majorVersion;
122 console.info('the value of the deviceInfo majorVersion is :' + majorVersionInfo);
124 let seniorVersionInfo: number = deviceInfo.seniorVersion;
125 console.info('the value of the deviceInfo seniorVersion is :' + seniorVersionInfo);
127 let featureVersionInfo: number = deviceInfo.featureVersion;
128 console.info('the value of the deviceInfo featureVersion is :' + featureVersionInfo);
130 let buildVersionInfo: number = deviceInfo.buildVersion;
131 console.info('the value of the deviceInfo buildVersion is :' + buildVersionInfo);
133 let sdkApiVersionInfo: number = deviceInfo.sdkApiVersion;
134 console.info('the value of the deviceInfo sdkApiVersion is :' + sdkApiVersionInfo);
136 let firstApiVersionInfo: number = deviceInfo.firstApiVersion;
137 console.info('the value of the deviceInfo firstApiVersion is :' + firstApiVersionInfo);
139 let versionIdInfo: string = deviceInfo.versionId;
140 console.info('the value of the deviceInfo versionId is :' + versionIdInfo);
142 let buildTypeInfo: string = deviceInfo.buildType;
143 console.info('the value of the deviceInfo buildType is :' + buildTypeInfo);
145 let buildUserInfo: string = deviceInfo.buildUser;
146 console.info('the value of the deviceInfo buildUser is :' + buildUserInfo);
148 let buildHostInfo: string = deviceInfo.buildHost;
149 console.info('the value of the deviceInfo buildHost is :' + buildHostInfo);
151 let buildTimeInfo: string = deviceInfo.buildTime;
152 console.info('the value of the deviceInfo buildTime is :' + buildTimeInfo);
154 let buildRootHashInfo: string = deviceInfo.buildRootHash;
155 console.info('the value of the deviceInfo buildRootHash is :' + buildRootHashInfo);
157 let udid: string = deviceInfo.udid;
158 console.info('the value of the deviceInfo udid is :' + udid);
160 let distributionOSName: string = deviceInfo.distributionOSName
161 console.info('the value of the deviceInfo distributionOSName is :' + distributionOSName);
163 let distributionOSVersion: string = deviceInfo.distributionOSVersion
164 console.info('the value of the deviceInfo distributionOSVersion is :' + distributionOSVersion);
166 let distributionOSApiVersion: number = deviceInfo.distributionOSApiVersion
167 …console.info('the value of the deviceInfo distributionOSApiVersion is :' + distributionOSApiVersio…
169 let distributionOSApiName: number = deviceInfo.distributionOSApiName
170 console.info('the value of the deviceInfo distributionOSApiName is :' + distributionOSApiName);
172 let distributionOSReleaseType: string = deviceInfo.distributionOSReleaseType
173 …console.info('the value of the deviceInfo distributionOSReleaseType is :' + distributionOSReleaseT…
175 let odid: string = deviceInfo.ODID;
176 console.info('the value of the deviceInfo odid is :' + odid);