AppInfo
@CarProtocol
class AppInfo
Container class for information about the app the host is connected to.
Hosts will use this information to provide the right level of compatibility, based on the application's minimum and maximum API level and its own set of supported API levels.
The application minimum API level is defined in the application's manifest using the following declaration.
<manifest ...> <application ...> <meta-data android:name="androidx.car.app.minCarApiLevel" android:value="1" /> ... </application> </manifest>
| See also | |
|---|---|
getCarAppApiLevel |
Summary
Constants |
|
|---|---|
const String! |
MIN_API_LEVEL_METADATA_KEY = "androidx.car.app.minCarApiLevel"Application meta-data tag used to define the minimum Car App API level this application is able to handle. |
Public constructors |
|---|
@VisibleForTestingCreates an instance of |
Constants
MIN_API_LEVEL_METADATA_KEY
const val MIN_API_LEVEL_METADATA_KEY = "androidx.car.app.minCarApiLevel": String!
Application meta-data tag used to define the minimum Car App API level this application is able to handle.
If not specified, the library assumes the application can only handle the Car App API level designed by getLatest at the time of compiling.
| See also | |
|---|---|
getCarAppApiLevel |
Public constructors
Public functions
getLibraryDisplayVersion
fun getLibraryDisplayVersion(): String
String representation of library version. This version string is opaque and not meant to be parsed.