isAppInstalled

open fun isAppInstalled(@NonNull() action: String, @NonNull() category: String): Boolean

Return whether the app is installed.

Return

{@code true}: yes{@code false}: no

Parameters

action

The Intent action, such as ACTION_VIEW.

category

The desired category.

open fun isAppInstalled(@NonNull() packageName: String): Boolean

Return whether the app is installed.

Return

{@code true}: yes{@code false}: no

Parameters

packageName

The name of the package.