Added in API level 34

AppInfo


class AppInfo
kotlin.Any
   ↳ android.health.connect.datatypes.AppInfo

Application Info class containing details about a given application

Summary

Public methods
Bitmap?

Returns the application icon as bitmap

String?

Returns the application name/label

String

Returns the application package name

Public methods

getIcon

Added in API level 34
fun getIcon(): Bitmap?

Returns the application icon as bitmap

Return
Bitmap? This value may be null.

getName

Added in API level 34
fun getName(): String?

Returns the application name/label

Return
String? This value may be null.

getPackageName

Added in API level 34
fun getPackageName(): String

Returns the application package name

Return
String This value cannot be null.