VersionInfo

Kotlin|Java

public classVersionInfo

Known direct subclasses

Version info for Google Mobile Ads SDK.

Summary

Public constructors

VersionInfo(int majorVersion, int minorVersion, int microVersion)

Creates a newVersionInfo object.

Public methods

int

Gets the major version.

int

Gets the micro version.

int

Gets the minor version.

String

Returns a semantic versioning string of this object with the formatmajorVersion.minorVersion.microVersion.

Public constructors

VersionInfo

public VersionInfo(int majorVersion, int minorVersion, int microVersion)

Creates a newVersionInfo object.

Public methods

getMajorVersion

public int getMajorVersion()

Gets the major version.

getMicroVersion

public int getMicroVersion()

Gets the micro version.

getMinorVersion

public int getMinorVersion()

Gets the minor version.

toString

public String toString()

Returns a semantic versioning string of this object with the formatmajorVersion.minorVersion.microVersion.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-20 UTC.