Skip to content

Package

Overview

Package is a non-visible component that allows users to get some information about the application packages.

Properties

App Name

App Name

( Getter only )

Type: Number

Returns the name of the currrent running application.

Package Name

Package Name

( Getter only )

Type: Number

Returns the package name of the currrent running application.

Version Code

Version Code

( Getter only )

Type: Number

Returns the version code of the currrent running application.

Version Name

Version Name

( Getter only )

Type: Alphanumerical

Returns the version name of the currrent running application.

Methods

App Name From

App Name From

( Text package Name )

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

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

Get Package Icon

Get Package Icon

( Text package Name )

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

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

Is Package Installed

Is Package Installed

( Text package Name )

Returns true if the package (app) is installed.

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

Version Code From

Version Code From

( Text package Name )

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

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

Version Name From

Version Name From

( Text package Name )

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

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

Is Permission Granted

Is Permission Granted

( Text permission Name, Text package Name )

Checks whether a particular package (app) has been granted a particular permission.

Params
permission Name Text: The name of the permision that has to be checked. For example, READ_CALENDER.
package Name Text: The package name of the app whose name has to be returned. For example, io.kodular.myfirstapp.

Tip

For an overview of permission groups take a look here.