• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# AppVersionInfo
2
3The **AppVersionInfo** module defines the application version information. You can use [getAppVersionInfo](js-apis-inner-app-context.md#contextgetappversioninfo7) to obtain the version information of the current application.
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## Modules to Import
10
11```ts
12import featureAbility from '@ohos.ability.featureAbility';
13```
14
15## Attributes
16
17**System capability**: SystemCapability.Ability.AbilityRuntime.Core
18
19| Name       | Type  | Readable| Writable| Description          |
20| ----------- | ------ | ---- | ---- | -------------- |
21| appName     | string | Yes  | No  | Application name.    |
22| versionCode | number | Yes  | No  | Application version code.|
23| versionName | string | Yes  | No  | Application version name.  |
24