언어

WebAppQueryResultCode Enum

Definition

public enum WebAppQueryResultCode
type WebAppQueryResultCode = 
Inheritance
WebAppQueryResultCode

Fields

Name Value Description
Installed 0

The queried package is installed by WebAppManager and any of the following apply: The calling app holds Manifest.permission.QUERY_ALL_PACKAGES permission; The package was installed by the calling app via WebAppManager.

Android reference for android.content.pm.webapp.WebAppQueryRequest.RESULT_INSTALLED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NotInstalled 1

The queried package is not installed by WebAppManager.

This result is returned if and only if: The calling app holds Manifest.permission.QUERY_ALL_PACKAGES permission; The package is not installed by WebAppManager.

Android reference for android.content.pm.webapp.WebAppQueryRequest.RESULT_NOT_INSTALLED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

InternalError 2

The query failed due to an internal system error.

Android reference for android.content.pm.webapp.WebAppQueryRequest.RESULT_INTERNAL_ERROR.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PermissionDenied 3

The calling app does not have the necessary permissions to query this package.

This result is returned if any of the following apply: The package is not visible to the calling app; The package was not installed by the calling app.

Android reference for android.content.pm.webapp.WebAppQueryRequest.RESULT_PERMISSION_DENIED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Unavailable 4

The query failed due to the service being unavailable.

Android reference for android.content.pm.webapp.WebAppQueryRequest.RESULT_UNAVAILABLE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Unknown 5

The query result is unknown.

Android reference for android.content.pm.webapp.WebAppQueryRequest.RESULT_UNKNOWN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to