PackageInfoCompat

class PackageInfoCompat
kotlin.Any
   ↳ androidx.core.content.pm.PackageInfoCompat

Helper for accessing features in PackageInfo.

Summary

Public methods
static Long

Return android.R.attr#versionCode and android.R.attr#versionCodeMajor combined together as a single long value.

Public methods

getLongVersionCode

static fun getLongVersionCode(info: PackageInfo): Long

Return android.R.attr#versionCode and android.R.attr#versionCodeMajor combined together as a single long value. The versionCodeMajor is placed in the upper 32 bits on Android P or newer, otherwise these bits are all set to 0.