getAppVersionCode

open fun getAppVersionCode(): Int

Return the application's version code.

Return

the application's version code

open fun getAppVersionCode(packageName: String): Int

Return the application's version code.

Return

the application's version code

Parameters

packageName

The name of the package.