Language

AppFunctionError Enum

Definition

public enum AppFunctionError
type AppFunctionError = 
Inheritance
AppFunctionError

Fields

Name Value Description
Denied 1000

The caller does not have the permission to execute an app function.

This error is returned to the caller of AppFunctionManager.executeAppFunction if the caller does not have the necessary permission.

This error is in the ERROR_CATEGORY_REQUEST_ERROR category.

Android reference for android.app.appfunctions.AppFunctionException.ERROR_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.

InvalidArgument 1001

The caller supplied invalid arguments to the execution request.

This error may be considered similar to IllegalArgumentException.

This error is in the ERROR_CATEGORY_REQUEST_ERROR category.

Android reference for android.app.appfunctions.AppFunctionException.ERROR_INVALID_ARGUMENT.

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.

Disabled 1002

The caller tried to execute a disabled app function.

This error is returned to the caller of AppFunctionManager.executeAppFunction if the app function is considered disabled according to AppFunctionState.isEnabled.

This error is in the ERROR_CATEGORY_REQUEST_ERROR category.

Android reference for android.app.appfunctions.AppFunctionException.ERROR_DISABLED.

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.

FunctionNotFound 1003

The caller tried to execute a function that does not exist.

This error is returned to the caller of AppFunctionManager.executeAppFunction if one of the following is true: The function identifier specified in ExecuteAppFunctionRequest.getFunctionIdentifier does not match any function identifiers in the metadata returned by AppFunctionManager.searchAppFunctions; The app function is AppFunctionMetadata.SCOPE_ACTIVITY and ExecuteAppFunctionRequest.getActivityId is not provided or does not match any activity identifiers returned by AppFunctionState.getActivityIds, this error will be returned; The app function is AppFunctionMetadata.SCOPE_GLOBAL and ExecuteAppFunctionRequest.getActivityId is non-null.

This error is in the ERROR_CATEGORY_REQUEST_ERROR category.

Android reference for android.app.appfunctions.AppFunctionException.ERROR_FUNCTION_NOT_FOUND.

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.

SystemError 2000
Cancelled 2001

The operation was cancelled. Use this error code to report that a cancellation is done after receiving a cancellation signal.

This error is in the ERROR_CATEGORY_SYSTEM category.

Android reference for android.app.appfunctions.AppFunctionException.ERROR_CANCELLED.

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.

EnterprisePolicyDisallowed 2002

The operation was disallowed by enterprise policy.

This error is in the ERROR_CATEGORY_SYSTEM category.

Android reference for android.app.appfunctions.AppFunctionException.ERROR_ENTERPRISE_POLICY_DISALLOWED.

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.

AppUnknownError 3000

An unknown error occurred while processing the call in the AppFunctionService.

This error is thrown when the service is connected in the remote application but an unexpected error is thrown from the bound application.

This error is in the ERROR_CATEGORY_APP category.

Android reference for android.app.appfunctions.AppFunctionException.ERROR_APP_UNKNOWN_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.

Applies to