Share via


Build.GetMajorSdkVersion(Int32) Method

Definition

Obtain the major version encoded in a VERSION_CODES_FULL value.

[Android.Runtime.Register("getMajorSdkVersion", "(I)I", "", ApiSince=36)]
public static int GetMajorSdkVersion(int sdkIntFull);
[<Android.Runtime.Register("getMajorSdkVersion", "(I)I", "", ApiSince=36)>]
static member GetMajorSdkVersion : int -> int

Parameters

sdkIntFull
Int32

Returns

The major version encoded in a VERSION_CODES_FULL value

Attributes

Remarks

Obtain the major version encoded in a VERSION_CODES_FULL value. This value is guaranteed to be non-negative.

Java documentation for android.os.Build.getMajorSdkVersion(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