js-apis-inner-app-appVersionInfo.md 895 字节
Newer Older
1 2
# AppVersionInfo

3
The **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 6 7
> **NOTE**
> 
> 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 10 11 12 13 14
## Modules to Import

```ts
import featureAbility from '@ohos.ability.featureAbility';
```

15
**System capability**: SystemCapability.Ability.AbilityRuntime.Core
16

17 18 19 20 21
| Name       | Type  | Readable| Writable| Description          |
| ----------- | ------ | ---- | ---- | -------------- |
| appName     | string | Yes  | No  | Application name.    |
| versionCode | number | Yes  | No  | Application version code.|
| versionName | string | Yes  | No  | Application version name.  |