SystemInfo

object SystemInfo

System information.

Properties

Link copied to clipboard
val applicationPackage: String

Retrieve the main app package name. As the name depends on the android:process attribute within AndroidManifest.xml, the process name part needs to be stripped away.

Link copied to clipboard
val isDebugBuild: Boolean

Whether the current module is built in debug mode.

Link copied to clipboard
val isRunningOnEmulator: Boolean

Whether the app is running on an emulator. Emulator platforms are not suitable for any product-specific developments, and do not have Bluetooth or automotive extensions.

Link copied to clipboard
val isRunningOnReferencePlatform: Boolean

Whether the app is running on a reference platform. A reference platform can be a physical or virtual Android device set up to be used as reference for development. Reference platforms are not suitable for any product-specific developments, and will thus have certain limited or absent hardware-dependent features. Examples of such features are: radio tuners, Bluetooth support, or automotive extensions. Each platform has different limitations.