Lines Matching refs:deviceInfo

1 # @ohos.deviceInfo (设备信息)
14 import { deviceInfo } from '@kit.BasicServicesKit';
45 | majorVersion | number | 是 | 否 | Major版本号,随主版本更新增加,值为osFullName中的第一位数值,建议直接使用deviceInfo.majorVersi…
46 | seniorVersion | number | 是 | 否 | Senior版本号,随局部架构、重大特性增加,值为osFullName中的第二位数值,建议直接使用deviceInfo.seni…
47 | featureVersion | number | 是 | 否 | Feature版本号,标识规划的新特性版本,值为osFullName中的第三位数值,建议直接使用deviceInfo.feat…
48 | buildVersion | number | 是 | 否 | Build版本号,标识编译构建的版本号,值为osFullName中的第四位数值,建议直接使用deviceInfo.buildVer…
68 import { deviceInfo } from '@kit.BasicServicesKit';
70 let deviceTypeInfo: string = deviceInfo.deviceType;
74 let manufactureInfo: string = deviceInfo.manufacture;
78 let brandInfo: string = deviceInfo.brand;
82 let marketNameInfo: string = deviceInfo.marketName;
84 console.info('the value of the deviceInfo marketName is :' + marketNameInfo);
86 let productSeriesInfo: string = deviceInfo.productSeries;
88 console.info('the value of the deviceInfo productSeries is :' + productSeriesInfo);
90 let productModelInfo: string = deviceInfo.productModel;
92 console.info('the value of the deviceInfo productModel is :' + productModelInfo);
94 let productModelAliasInfo: string = deviceInfo.productModelAlias;
95 console.info('the value of the deviceInfo productModelAlias is :' + productModelAliasInfo);
97 let softwareModelInfo: string = deviceInfo.softwareModel;
99 console.info('the value of the deviceInfo softwareModel is :' + softwareModelInfo);
101 let hardwareModelInfo: string = deviceInfo.hardwareModel;
103 console.info('the value of the deviceInfo hardwareModel is :' + hardwareModelInfo);
105 let serialInfo: string = deviceInfo.serial;
107 console.info('the value of the deviceInfo serial is :' + serialInfo);
109 let bootloaderVersionInfo: string = deviceInfo.bootloaderVersion;
111 console.info('the value of the deviceInfo bootloaderVersion is :' + bootloaderVersionInfo);
113 let abiListInfo: string = deviceInfo.abiList;
115 console.info('the value of the deviceInfo abiList is :' + abiListInfo);
117 let securityPatchTagInfo: string = deviceInfo.securityPatchTag;
119 console.info('the value of the deviceInfo securityPatchTag is :' + securityPatchTagInfo);
121 let displayVersionInfo: string = deviceInfo.displayVersion;
123 console.info('the value of the deviceInfo displayVersion is :' + displayVersionInfo);
125 let incrementalVersionInfo: string = deviceInfo.incrementalVersion;
127 console.info('the value of the deviceInfo incrementalVersion is :' + incrementalVersionInfo);
129 let osReleaseTypeInfo: string = deviceInfo.osReleaseType;
131 console.info('the value of the deviceInfo osReleaseType is :' + osReleaseTypeInfo);
133 let osFullNameInfo: string = deviceInfo.osFullName;
135 console.info('the value of the deviceInfo osFullName is :' + osFullNameInfo);
137 let majorVersionInfo: number = deviceInfo.majorVersion;
139 console.info('the value of the deviceInfo majorVersion is :' + majorVersionInfo);
141 let seniorVersionInfo: number = deviceInfo.seniorVersion;
143 console.info('the value of the deviceInfo seniorVersion is :' + seniorVersionInfo);
145 let featureVersionInfo: number = deviceInfo.featureVersion;
147 console.info('the value of the deviceInfo featureVersion is :' + featureVersionInfo);
149 let buildVersionInfo: number = deviceInfo.buildVersion;
151 console.info('the value of the deviceInfo buildVersion is :' + buildVersionInfo);
153 let sdkApiVersionInfo: number = deviceInfo.sdkApiVersion;
155 console.info('the value of the deviceInfo sdkApiVersion is :' + sdkApiVersionInfo);
157 let firstApiVersionInfo: number = deviceInfo.firstApiVersion;
159 console.info('the value of the deviceInfo firstApiVersion is :' + firstApiVersionInfo);
161 let versionIdInfo: string = deviceInfo.versionId;
163 console.info('the value of the deviceInfo versionId is :' + versionIdInfo);
165 let buildTypeInfo: string = deviceInfo.buildType;
167 console.info('the value of the deviceInfo buildType is :' + buildTypeInfo);
169 let buildUserInfo: string = deviceInfo.buildUser;
171 console.info('the value of the deviceInfo buildUser is :' + buildUserInfo);
173 let buildHostInfo: string = deviceInfo.buildHost;
175 console.info('the value of the deviceInfo buildHost is :' + buildHostInfo);
177 let buildTimeInfo: string = deviceInfo.buildTime;
179 console.info('the value of the deviceInfo buildTime is :' + buildTimeInfo);
181 let buildRootHashInfo: string = deviceInfo.buildRootHash;
183 console.info('the value of the deviceInfo buildRootHash is :' + buildRootHashInfo);
185 let udid: string = deviceInfo.udid;
187 console.info('the value of the deviceInfo udid is :' + udid);
189 let distributionOSName: string = deviceInfo.distributionOSName
191 console.info('the value of the deviceInfo distributionOSName is :' + distributionOSName);
193 let distributionOSVersion: string = deviceInfo.distributionOSVersion
195 console.info('the value of the deviceInfo distributionOSVersion is :' + distributionOSVersion);
197 let distributionOSApiVersion: number = deviceInfo.distributionOSApiVersion
199 …console.info('the value of the deviceInfo distributionOSApiVersion is :' + distributionOSApiVersio…
201 let distributionOSApiName: string = deviceInfo.distributionOSApiName
202 console.info('the value of the deviceInfo distributionOSApiName is :' + distributionOSApiName);
204 let distributionOSReleaseType: string = deviceInfo.distributionOSReleaseType
206 …console.info('the value of the deviceInfo distributionOSReleaseType is :' + distributionOSReleaseT…
208 let odid: string = deviceInfo.ODID;
210 console.info('the value of the deviceInfo odid is :' + odid);