All Products
Search
Document Center

SuperApp:EMASMiniAppConstants

Last Updated:Aug 29, 2024

Constants related to miniapps.

@interface EMASMiniAppConstants : NSObject

EMAS_ERROR_CODE_APP_ID_EMPTY

static const int EMAS_ERROR_CODE_APP_ID_EMPTY = 1;

The error code for empty miniapp IDs.

EMAS_ERROR_CODE_NETWORK_ERROR

static const int EMAS_ERROR_CODE_NETWORK_ERROR = 2;

The error code for network errors.

EMAS_ERROR_CODE_NETWORK_RESPONSE_FORMAT_ERROR

static const int EMAS_ERROR_CODE_NETWORK_RESPONSE_FORMAT_ERROR = 3;

The error code for an invalid client request.

EMAS_ERROR_CODE_NETWORK_RESPONSE_EMPTY

The error code for an empty client request.

static const int EMAS_ERROR_CODE_NETWORK_RESPONSE_EMPTY = 4;

EMAS_ERROR_CODE_NETWORK_RESPONSE_SUCCESS_FALSE

static const int EMAS_ERROR_CODE_NETWORK_RESPONSE_SUCCESS_FALSE = 5;

The error code for failed parsing of a client request on the server.

EMAS_ERROR_CODE_MINI_APP_NO_UPDATE

static const int EMAS_ERROR_CODE_MINI_APP_NO_UPDATE = 6;

The error code that is returned when a miniapp is not updated.

EMAS_ERROR_CODE_URL_VERSION_EMPTY

static const int EMAS_ERROR_CODE_URL_VERSION_EMPTY = 7;

The error code for empty miniapp versions or download URLs.

EMAS_ERROR_CODE_MINI_APP_DOWNLOAD_ERROR

static const int EMAS_ERROR_CODE_MINI_APP_DOWNLOAD_ERROR = 8;

The error code for failed downloading of a miniapp.

EMAS_ERROR_CODE_MINI_APP_UNZIP_ERROR

static const int EMAS_ERROR_CODE_MINI_APP_UNZIP_ERROR = 9;

The error code for failed extraction of a miniapp.

EMAS_ERROR_CODE_MINI_APP_CACHE_ERROR

static const int EMAS_ERROR_CODE_MINI_APP_CACHE_ERROR = 10;

The error code for failed caching of a miniapp.

EMAS_ERROR_CODE_MINI_APP_TAKEN_OFF

static const int EMAS_ERROR_CODE_MINI_APP_TAKEN_OFF = 11;

The error code that is returned when a miniapp is removed from Application Open Platform.

EMAS_ERROR_CODE_MINI_APP_NOT_INITED

static const int EMAS_ERROR_CODE_MINI_APP_NOT_INITED = 12;

The error code that is returned when a miniapp container is not initialized.

EMAS_ERROR_CODE_PARAMS_ERROR

static const int EMAS_ERROR_CODE_PARAMS_ERROR = 13;

The error code for method parameter errors.

EMAS_ERROR_CODE_MINI_APP_TYPE_NOT_SUPPORT

static const int EMAS_ERROR_CODE_MINI_APP_TYPE_NOT_SUPPORT = 14;

The error code for unsupported types of miniapps.

EMAS_ERROR_CODE_WINDVANE_NOT_USED

static const int EMAS_ERROR_CODE_WINDVANE_NOT_USED = 15;

The error code that is returned when the WindVane miniapp container is not used during initialization.

EMAS_ERROR_CODE_UNIAPP_NOT_USED

static const int EMAS_ERROR_CODE_UNIAPP_NOT_USED = 16;

The error code that is returned when the uni-app miniapp container is not used during initialization.

EMAS_ERROR_CODE_OPEN_UNIAPP_FAILED

static const int EMAS_ERROR_CODE_OPEN_UNIAPP_FAILED = 17;

The error code for startup failure of a uni-app miniapp.