Build.GetMajorSdkVersion(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.