AndroidInfoImpl

internal class AndroidInfoImpl : AndroidInfo

The AndroidInfoImpl class providing an implementation of the AndroidInfo interface. It retrieves detailed information about an Android device and its system environment.

Author

Swapnil Musale

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
internal object Companion

Properties

Link copied to clipboard

androidDeviceOrientation lazy initialization of the DeviceOrientation object

Link copied to clipboard

androidDisplayMetrics lazy initialization of the DisplayMetrics object

Link copied to clipboard
open override val androidId: String

androidId the unique Android ID of the device

Link copied to clipboard
private val androidVersion: Version

androidVersion lazy initialization of the AndroidVersion object

Link copied to clipboard

androidVersionCode lazy initialization of the VersionCode object

Link copied to clipboard
private val appContext: Context

appContext lazy initialization of the application context

Link copied to clipboard
open override val appName: String

appName the name of the application

Link copied to clipboard
open override val board: String

board the board name of the device hardware

Link copied to clipboard
open override val bootloader: String

bootloader the version of the device bootloader

Link copied to clipboard
open override val device: String

device the device name

Link copied to clipboard

deviceOrientation the current orientation of the device

Link copied to clipboard
open override val display: String

display the display identifier for the build

Link copied to clipboard
open override val displayMetrics: DisplayMetrics

displayMetrics display metrics containing screen properties

Link copied to clipboard
open override val fingerprint: String

fingerprint the unique identifier for the build fingerprint

Link copied to clipboard
open override val hardware: String

hardware the name of the device hardware

Link copied to clipboard
open override val host: String

host the host name used to build the system

Link copied to clipboard
open override val id: String

id the build ID for the software

Link copied to clipboard
open override val isDebug: Boolean

isDebug indicates whether the application is running in debug mode

Link copied to clipboard
open override val isPhysicalDevice: Boolean

isPhysicalDevice indicates whether the device is a physical device

Link copied to clipboard
open override val locale: Locale

locale the locale information of the device

Link copied to clipboard
open override val manufacturer: String

manufacturer the name of the device manufacturer

Link copied to clipboard
open override val model: String

model the model name of the device

Link copied to clipboard

packageInfo lazy initialization of the application's PackageInfo

Link copied to clipboard

packageManager lazy initialization of the PackageManager for the app context

Link copied to clipboard
open override val packageName: String

packageName the package name of the application

Link copied to clipboard
open override val product: String

product the product name of the device

Link copied to clipboard
open override val supported32BitAbis: Array<String>

supported32BitAbis an array of supported 32-bit ABIs for the device

Link copied to clipboard
open override val supported64BitAbis: Array<String>

supported64BitAbis an array of supported 64-bit ABIs for the device

Link copied to clipboard
open override val supportedAbis: Array<String>

supportedAbis an array of supported ABIs for the device

Link copied to clipboard
open override val systemFeatureList: List<String>

systemFeatureList a list of system features available on the device

Link copied to clipboard
open override val tags: String

tags comma-separated tags associated with the build

Link copied to clipboard
open override val version: Version

version the version information of the application or system

Link copied to clipboard
open override val VERSION_CODES: VersionCode

VERSION_CODES an enumeration of version codes

Link copied to clipboard
open override val versionCode: Long

versionCode the version code of the application or system

Link copied to clipboard
open override val versionName: String

versionName the version name of the application or system

Functions

Link copied to clipboard

Method to determine whether the device is physical or an emulator

Link copied to clipboard
private fun getSystemFeatures(): List<String>

Method to obtain a list of system features available on the device