PackageUtils

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

A non-visible component to get info about installed packages.


Properties

You can set the below properties in the UI part of the builder.

  • ShowToast - it's a boolean value which is set to false by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

ApplicationName

Returns name of current running app


PackageName

Returns package name of current running app


ShowToast

Show toast message, if true


VersionCode

Return version code of current running app


VersionName

Return version name of current running app



Methods

You can set the below method blocks in the blocks section of the builder.

AppIconFrom

Return path of icon of given package

AppNameFrom

Returns app name from given package

IsPackageInstalled

Returns true if the package is installed

IsSystemPackage

Returns true if app is system app

Launch

Launch an app from its package name

SystemAppsList

Returns a list of all system apps

UserInstalledAppsList

Returns a list of all apps installed by users

VersionCodeFrom

Returns version code of given package

VersionNameFrom

Returns version name of given package

isPermissionGranted

Return true if the given package has specific permission has been granted