Language

VersionedPackage.VersionCode Property

Definition

This member is deprecated.

public int VersionCode { [Android.Runtime.Register("getVersionCode", "()I", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getVersionCode", "()I", "", ApiSince=26)>]
member this.VersionCode : int

Property Value

On Android 8.0 and 8.1, the stored 32-bit version code. On Android 9.0 and later, the low 31 bits of the stored version code; for VERSION_CODE_HIGHEST (-1), this is 2147483647.

Attributes

Remarks

This member is deprecated. use #getLongVersionCode() instead.

Java documentation for android.content.pm.VersionedPackage.getVersionCode().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to