Language

ArchivedPackageInfo.SetVersionCodeMajor(Int32) Method

Definition

The major version number of the package, as specified by the <manifest>tag's android.R.styleable#AndroidManifest_versionCode versionCodeMajor attribute.

[Android.Runtime.Register("setVersionCodeMajor", "(I)Landroid/content/pm/ArchivedPackageInfo;", "", ApiSince=35)]
public Android.Content.PM.ArchivedPackageInfo SetVersionCodeMajor(int value);
[<Android.Runtime.Register("setVersionCodeMajor", "(I)Landroid/content/pm/ArchivedPackageInfo;", "", ApiSince=35)>]
member this.SetVersionCodeMajor : int -> Android.Content.PM.ArchivedPackageInfo

Parameters

value
Int32

The major manifest version code to store.

Returns

This archived package record after the major version code is assigned.

Attributes

Remarks

The major version number of the package, as specified by the &lt;manifest&gt;tag's android.R.styleable#AndroidManifest_versionCode versionCodeMajor attribute.

Java documentation for android.content.pm.ArchivedPackageInfo.setVersionCodeMajor(int).

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