getAppInfo

open fun getAppInfo(): AppUtils.AppInfo

Return the application's information.

  • name of package
  • icon
  • name
  • path of package
  • version name
  • version code
  • is system

Return

the application's information

open fun getAppInfo(packageName: String): AppUtils.AppInfo

Return the application's information.

  • name of package
  • icon
  • name
  • path of package
  • version name
  • version code
  • is system

Return

当前应用的 AppInfo

Parameters

packageName

The name of the package.