Package Utilities

Overview

The Package Utilities component can be used to fetch information about application packages currently installed in the users' devices.

Properties

App Name

App Name

[ Getter only | Blocks only ] Type: Text

The Name of the application that is currently running on the device. View more information about the application name here.

Package Name

Package Name

[ Getter only | Blocks only ] Type: Text

The Package Name of the application that is currently running on the device. View more information about the application package name here.

Version Code

Version Code

[ Getter only | Blocks only ] Type: Number

The Version Code of the application that is currently running on the device. View more information about the version code here.

Version Name

Version Name

[ Getter only | Blocks only ] Type: Text

The Version Name of the application that is currently running on the device. View more information about the version name here.

Methods

App Name From

App Name From

[ Text package Name ]

Returns the name of the application from the given package name.

Params
package Name Text: The package name of the application whose name is to be returned. For example, io.kodular.myfirstapp.

Get Package Icon

Get Package Icon

[ Text package Name ]

Returns the icon of the application from the given package name.

Params
package Name Text: The package name of the application whose icon has is to be returned.

Is Package Installed

Is Package Installed

[ Text package Name ]

Returns True if the package (application) is currently installed in the device, False otherwise.

Params
package Name Text: The package name to be checked.

Version Code From

Version Code From

[ Text package Name ]

Returns the version code of the application from the given package name.

Params
package Name Text: The package name of the application whose version code is to be returned.

Version Name From

Version Name From

[ Text package Name ]

Returns the version name of the application from the given package name.

Params
package Name Text: The package name of the application whose version name is to be returned.

Is Permission Granted

Is Permission Granted

[ Text permission Name, Text package Name ]

Returns True if the passed package name (application) has been granted a particular permission, False otherwise.

Params
permission Name Text: The name of the permision that has to be checked. For example, READ_CALENDER.
package Name Text: The package name to be checked.

Tip

Take a look here for an overview of permission groups.