Added in API level 33
PlatformVersion
public
final
class
PlatformVersion
extends ApiVersion<PlatformVersion>
implements
Parcelable
java.lang.Object | ||
↳ | android.car.ApiVersion<android.car.PlatformVersion> | |
↳ | android.car.PlatformVersion |
Represents the API version of the standard Android SDK.
Summary
Nested classes | |
---|---|
class |
PlatformVersion.VERSION_CODES
Contains pre-defined versions matching Car releases. |
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<PlatformVersion> |
CREATOR
|
Public methods | |
---|---|
int
|
describeContents()
|
static
PlatformVersion
|
forMajorAndMinorVersions(int majorVersion, int minorVersion)
Creates a new instance with the given major and minor versions. |
static
PlatformVersion
|
forMajorVersion(int majorVersion)
Creates a new instance for a major version (i.e., the minor version will be |
void
|
writeToParcel(Parcel dest, int flags)
|
Inherited methods | |
---|---|
Fields
Public methods
forMajorAndMinorVersions
Added in API level 33
public static PlatformVersion forMajorAndMinorVersions (int majorVersion, int minorVersion)
Creates a new instance with the given major and minor versions.
Parameters | |
---|---|
majorVersion |
int |
minorVersion |
int |
Returns | |
---|---|
PlatformVersion |
forMajorVersion
Added in API level 33
public static PlatformVersion forMajorVersion (int majorVersion)
Creates a new instance for a major version (i.e., the minor version will be 0
.
Parameters | |
---|---|
majorVersion |
int |
Returns | |
---|---|
PlatformVersion |
writeToParcel
Added in API level 33
public void writeToParcel (Parcel dest, int flags)
Parameters | |
---|---|
dest |
Parcel |
flags |
int |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]