Share via


PackageInfo.LongVersionCode Property

Definition

Return android.R.styleable#AndroidManifest_versionCode versionCode and android.R.styleable#AndroidManifest_versionCodeMajor versionCodeMajor combined together as a single long value. -or- Set the full version code in this PackageInfo, updating #versionCode with the lower bits.

public virtual long LongVersionCode { [Android.Runtime.Register("getLongVersionCode", "()J", "GetGetLongVersionCodeHandler", ApiSince=28)] get; [Android.Runtime.Register("setLongVersionCode", "(J)V", "GetSetLongVersionCode_JHandler", ApiSince=28)] set; }
[<get: Android.Runtime.Register("getLongVersionCode", "()J", "GetGetLongVersionCodeHandler", ApiSince=28)>]
[<set: Android.Runtime.Register("setLongVersionCode", "(J)V", "GetSetLongVersionCode_JHandler", ApiSince=28)>]
member this.LongVersionCode : int64 with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Return android.R.styleable#AndroidManifest_versionCode versionCode and android.R.styleable#AndroidManifest_versionCodeMajor versionCodeMajor combined together as a single long value. The android.R.styleable#AndroidManifest_versionCodeMajor versionCodeMajor is placed in the upper 32 bits.

Java documentation for android.content.pm.PackageInfo.getLongVersionCode().

Property setter documentation:

Set the full version code in this PackageInfo, updating #versionCode with the lower bits.

Java documentation for android.content.pm.PackageInfo.setLongVersionCode(long).

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