目录

ResultCode

Class Info

public final class ResultCode

Common result codes.

Public Field Summary

Qualifier and Type

Field and Description

static int

BASE

Basic result codes.

static int

ERROR_AUTH_FAILURE

Authentication failed.

static int

ERROR_CREATE_ENGINE

Failed to create an engine.

static int

ERROR_DESTROY

Failed to release resources.

static int

ERROR_DOINIT

Initialization error.

static int

ERROR_DYNAMIC_MODULE_INIT_ERROR

Internal error.

static int

ERROR_DYNAMIC_MODULE_NEED_UPDATE

The queried module is unavailable and needs to be loaded remotely.

static int

ERROR_DYNAMIC_MODULE_NOT_EXIST

The module does not exist.

static int

ERROR_DYNAMIC_MODULE_NOT_PRESET_HSF

The Huawei Service Framework (HSF) has not been preset on the device and cannot be loaded.

static int

ERROR_DYNAMIC_MODULE_NOT_READY

The HMS Core framework has not been completely initialized.

static int

ERROR_GET_RENDER_VIEW_FAILURE

Failed to obtain a view.

static int

ERROR_PARAMS

Incorrect parameter.

static int

ERROR_PAUSE

Failed to pause an animation.

static int

ERROR_PLAY

Failed to play the animation.

static int

ERROR_REMOTE

Remote call error.

static int

ERROR_STOP

Failed to stop an animation.

static int

ERROR_VIEW_PARSE_FAILURE

Failed to parse a view.

static int

ERROR_XSD_CHECK_FAILURE

XSD verification failed.

static int

SUCCEED

Call succeeded.

static int

RECALL_API_BASE

Base error code repeated API call.

static int

RECALL_DESTORY_RENDERVIEW

Repeated calling of the removeRenderView API.

static int

RECALL_GET_RENDERVIEW

Repeated calling of the getRenderView API.

static int

UNGET_RENDERVIEW_TO_DESTORY_ANIMATION

The removeRenderView API is called before a RenderView instance is obtained.

static int

UNGET_RENDERVIEW_TO_PLAY_ANIMATION

The playAnimation API is called before a RenderView instance is obtained.

static int

UNGET_RENDERVIEW_TO_STOP_ANIMATION

The stopAnimation API is called before a RenderView instance is obtained.

static int

UNGET_RENDVIEW_BASE

Base error code for no RenderView.

static int

UNINIT_BASE

Base error code for uninstallation.

static int

UNINIT_TO_DESTORY_ANIMATION

The removeRenderView API is directly called without initialization.

static int

UNINIT_TO_GET_RENDERVIEW

The getRenderView API is directly called without initialization.

static int

UNINIT_TO_PALY_ANIMATION

The playAnimation API is directly called without initialization.

static int

UNINIT_TO_STOP_ANIMATION

The stopAnimation API is directly called without initialization.

static int

UNINIT_TO_SET_KEY_VALUE_INFO

The setKeyValueInfo API is directly called without initialization.

static int

UNINIT_TO_UNBIND

The unBindRenderView API is directly called without initialization.

static int

UNBIND_RENDER_BASE

Base error code for RenderView unbinding.

static int

UNBIND_RENDER_VIEW_FAILED

unBindRenderView API call failed.

static int

BIND_RENDER_BASE

Base error code for RenderView binding.

static int

HAS_BIND_RENDER_VIEW

bindRenderView API call succeeded.

static int

ERROR_START_RECORD_VIDEO

Abnormal startRecord API call.

static int

ERROR_STOP_RECORD_VIDEO

Abnormal stopRecord API call for video recording.

static int

ERROR_START_RECORD_GIF

Abnormal startRecord API call for GIF image recording.

static int

ERROR_STOP_RECORD_GIF

Abnormal stopRecord API call for GIF image recording.

static int

ERROR_START_RECORD_VIDEO_GIF

Abnormal startRecord API call for video and GIF image recording.

static int

ERROR_STOP_RECORD_VIDEO_GIF

Abnormal stopRecord API call for video and GIF image recording.

static int

RECORD_SCALE_PARAM_VIDEO

Video compression rate parameter error.

static int

RECORD_FPS_PARAM_VIDEO

Video frame rate parameter error.

static int

RECORD_SCALE_PARAM_GIF

GIF compression rate parameter error.

static int

RECORD_FPS_PARAM_GIF

GIF frame rate parameter error.

static int

RECORD_TYPE_PARAM_EXCEPTION

Record type parameter error.

static int

RECORD_REPEAT_STOP_RECORD_VIDEO

The stopRecord API for video recording is called repeatedly.

static int

RECORD_REPEAT_STOP_RECORD_GIF

The stopRecord API for GIF image recording is called repeatedly.

static int

RECORD_REPEAT_STOP_RECORD_VIDEO_GIF

The stopRecord API for video and GIF image recording is called repeatedly.

static int

RECORD_HAS_NOT_RECORD_VIDEO

No animation is being recorded.

static int

RECORD_HAS_NOT_RECORD_GIF

No GIF image is being recorded.

static int

RECORD_HAS_NOT_RECORD_VIDEO_GIF

No video or GIF image is being recorded.

static int

UNINIT_TO_START_RECORD_ANIMATION

The startRecord API is directly called without initialization.

static int

UNINIT_TO_STOP_RECORD_ANIMATION

The stopRecord API is directly called without initialization.

static int

UNGET_RENDERVIEW_TO_START_RECORD_ANIMATION

The startRecord API is called before a RenderView instance is obtained.

static int

UNGET_RENDERVIEW_TO_STOP_RECORD_ANIMATION

The stopRecord API is called before a RenderView instance is obtained.

static int

UNGET_RENDERVIEW_TO_UNBIND_VIEW

The unBindRenderView API is called before a RenderView instance is obtained.

static int

RECROD_VIDEO_GIF_TOO_SHORT_TIME

The recording duration is too short.

static int

RECORD_HAS_COMPUNDDING_VIDEO_GIF

Animation or GIF image synthesis error.

static int

RECORD_IS_RECORDDING_NOT_DOINT

The recording is in progress. Do not perform initialization again.

static int

RECORD_IS_RECORDDING_NOT_DESTORY

The recording is in progress. Do not destroy the view.

static int

RECORD_ADD_FRAME_TIME_OUT

Synthesis timed out.

static int

RECORD_NOT_SUPPORT_VIDEO

Video recording is not supported.

static int

RECORD_OUTOF_MEMORY

Memory overflow occurs during animation recording.

static int

RECORD_IS_RECORDDING_NOT_UNBIND

Calling the unBindRenderView API is not allowed when recording is in progress.

Public Constructor Summary

Constructor Name

ResultCode()

Constructor of a ResultCode instance.

Public Method Summary

Methods Inherited from Class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Public Fields

[h2]BASE

Field

public static final int BASE

Basic result codes.

For details, please refer to Constant-values.

[h2]SUCCEED

Field

public static final int SUCCEED

Call succeeded.

For details, please refer to Constant-values.

[h2]ERROR_REMOTE

Field

public static final int ERROR_REMOTE

Remote call error.

For details, please refer to Constant-values.

[h2]ERROR_CREATE_ENGINE

Field

public static final int ERROR_CREATE_ENGINE

Failed to create an engine.

For details, please refer to Constant-values.

[h2]ERROR_DOINIT

Field

public static final int ERROR_DOINIT

Initialization error.

For details, please refer to Constant-values.

[h2]ERROR_PARAMS

Field

public static final int ERROR_PARAMS

Incorrect parameter.

For details, please refer to Constant-values.

[h2]ERROR_AUTH_FAILURE

Field

public static final int ERROR_AUTH_FAILURE

Authentication failed.

For details, please refer to Constant-values.

[h2]ERROR_PLAY

Field

public static final int ERROR_PLAY

Failed to play the animation.

For details, please refer to Constant-values.

[h2]ERROR_STOP

Field

public static final int ERROR_STOP

Failed to stop the animation.

For details, please refer to Constant-values.

[h2]ERROR_DESTROY

Field

public static final int ERROR_DESTROY

Failed to release resources.

For details, please refer to Constant-values.

[h2]ERROR_VIEW_PARSE_FAILURE

Field

public static final int ERROR_VIEW_PARSE_FAILURE

Failed to parse a view.

For details, please refer to Constant-values.

[h2]ERROR_XSD_CHECK_FAILURE

Field

public static final int ERROR_XSD_CHECK_FAILURE

XSD verification failed.

For details, please refer to Constant-values.

[h2]ERROR_GET_RENDER_VIEW_FAILURE

Field

public static final int ERROR_GET_RENDER_VIEW_FAILURE

Failed to obtain a view.

For details, please refer to Constant-values.

[h2]ERROR_DYNAMIC_MODULE_NOT_EXIST

Field

public static final int ERROR_DYNAMIC_MODULE_NOT_EXIST

The module does not exist.

For details, please refer to Constant-values.

[h2]ERROR_DYNAMIC_MODULE_NEED_UPDATE

Field

public static final int ERROR_DYNAMIC_MODULE_NEED_UPDATE

The queried module is unavailable and needs to be loaded remotely.

For details, please refer to Constant-values.

[h2]ERROR_DYNAMIC_MODULE_INIT_ERROR

Field

public static final int ERROR_DYNAMIC_MODULE_INIT_ERROR

Internal error.

For details, please refer to Constant-values.

[h2]ERROR_DYNAMIC_MODULE_NOT_READY

Field

public static final int ERROR_DYNAMIC_MODULE_NOT_READY

The HMS Core framework has not been completely initialized.

For details, please refer to Constant-values.

[h2]ERROR_DYNAMIC_MODULE_NOT_PRESET_HSF

Field

public static final int ERROR_DYNAMIC_MODULE_NOT_PRESET_HSF

The Huawei Service Framework (HSF) has not been preset on the device and cannot be loaded.

For details, please refer to Constant-values.

[h2]ERROR_PAUSE

Field

public static final int ERROR_PAUSE

Failed to pause an animation.

For details, please refer to Constant-values.

[h2]UNINIT_BASE

Field

public static final int UNINIT_BASE

Base error code for uninstallation.

For details, please refer to Constant-values.

[h2]UNGET_RENDVIEW_BASE

Field

public static final int UNGET_RENDVIEW_BASE

Base error code for no RenderView.

For details, please refer to Constant-values.

[h2]RECALL_API_BASE

Field

public static final int RECALL_API_BASE

Base error code repeated API call.

For details, please refer to Constant-values.

[h2]UNINIT_TO_GET_RENDERVIEW

Field

public static final int UNINIT_TO_GET_RENDERVIEW

The getRenderView API is directly called without initialization.

For details, please refer to Constant-values.

[h2]UNINIT_TO_PALY_ANIMATION

Field

public static final int UNINIT_TO_PALY_ANIMATION

The playAnimation API is directly called without initialization.

For details, please refer to Constant-values.

[h2]UNINIT_TO_STOP_ANIMATION

Field

public static final int UNINIT_TO_STOP_ANIMATION

The stopAnimation API is directly called without initialization.

For details, please refer to Constant-values.

[h2]UNINIT_TO_DESTORY_ANIMATION

Field

public static final int UNINIT_TO_DESTORY_ANIMATION

The removeRenderView API is directly called without initialization.

For details, please refer to Constant-values.

[h2]UNINIT_TO_SET_KEY_VALUE_INFO

Field

public static final int UNINIT_TO_SET_KEY_VALUE_INFO

The setKeyValueInfo API is directly called without initialization.

For details, please refer to Constant-values.

[h2]UNINIT_TO_UNBIND

Field

public static final int UNINIT_TO_UNBIND

The unBindRenderView API is directly called without initialization.

For details, please refer to Constant-values.

[h2]UNGET_RENDERVIEW_TO_PLAY_ANIMATION

Field

public static final int UNGET_RENDERVIEW_TO_PLAY_ANIMATION

The playAnimation API is called before a RenderView instance is obtained.

For details, please refer to Constant-values.

[h2]UNGET_RENDERVIEW_TO_STOP_ANIMATION

Field

public static final int UNGET_RENDERVIEW_TO_STOP_ANIMATION

The stopAnimation API is called before a RenderView instance is obtained.

For details, please refer to Constant-values.

[h2]UNGET_RENDERVIEW_TO_DESTORY_ANIMATION

Field

public static final int UNGET_RENDERVIEW_TO_DESTORY_ANIMATION

The removeRenderView API is called before a RenderView instance is obtained.

For details, please refer to Constant-values.

[h2]RECALL_GET_RENDERVIEW

Field

public static final int RECALL_GET_RENDERVIEW

Repeated calling of the getRenderView API.

For details, please refer to Constant-values.

[h2]RECALL_DESTORY_RENDERVIEW

Field

public static final int RECALL_DESTORY_RENDERVIEW

Repeated calling of the removeRenderView API.

For details, please refer to Constant-values.

[h2]UNBIND_RENDER_BASE

Field

public static final int UNBIND_RENDER_BASE

Base error code for RenderView unbinding.

For details, please refer to Constant-values.

[h2]UNBIND_RENDER_VIEW_FAILED

Field

public static final int UNBIND_RENDER_VIEW_FAILED

unBindRenderView API call failed.

For details, please refer to Constant-values.

[h2]BIND_RENDER_BASE

Field

public static final int BIND_RENDER_BASE

Base error code for RenderView binding.

For details, please refer to Constant-values.

[h2]HAS_BIND_RENDER_VIEW

Field

public static final int HAS_BIND_RENDER_VIEW

bindRenderView API call succeeded.

For details, please refer to Constant-values.

[h2]ERROR_START_RECORD_VIDEO

Field

public static final int ERROR_START_RECORD_VIDEO

Abnormal startRecord API call.

For details, please refer to Constant-values.

[h2]ERROR_STOP_RECORD_VIDEO

Field

public static final int ERROR_STOP_RECORD_VIDEO

Abnormal stopRecord API call for video recording.

For details, please refer to Constant-values.

[h2]ERROR_START_RECORD_GIF

Field

public static final int ERROR_START_RECORD_GIF

Abnormal startRecord API call for GIF image recording.

For details, please refer to Constant-values.

[h2]ERROR_STOP_RECORD_GIF

Field

public static final int ERROR_STOP_RECORD_GIF

Abnormal stopRecord API call for GIF image recording.

For details, please refer to Constant-values.

[h2]ERROR_START_RECORD_VIDEO_GIF

Field

public static final int ERROR_START_RECORD_VIDEO_GIF

Abnormal startRecord API call for video and GIF image recording.

For details, please refer to Constant-values.

[h2]ERROR_STOP_RECORD_VIDEO_GIF

Field

public static final int ERROR_STOP_RECORD_VIDEO_GIF

Abnormal stopRecord API call for video and GIF image recording.

For details, please refer to Constant-values.

[h2]RECORD_SCALE_PARAM_VIDEO

Field

public static final int RECORD_SCALE_PARAM_VIDEO

Video compression rate parameter error.

For details, please refer to Constant-values.

[h2]RECORD_FPS_PARAM_VIDEO

Field

public static final int RECORD_FPS_PARAM_VIDEO

Video frame rate parameter error.

For details, please refer to Constant-values.

[h2]RECORD_SCALE_PARAM_GIF

Field

public static final int RECORD_SCALE_PARAM_GIF

GIF compression rate parameter error.

For details, please refer to Constant-values.

[h2]RECORD_FPS_PARAM_GIF

Field

public static final int RECORD_FPS_PARAM_GIF

GIF frame rate parameter error.

For details, please refer to Constant-values.

[h2]RECORD_TYPE_PARAM_EXCEPTION

Field

public static final int RECORD_TYPE_PARAM_EXCEPTION

Record type parameter error.

For details, please refer to Constant-values.

[h2]RECORD_REPEAT_STOP_RECORD_VIDEO

Field

public static final int RECORD_REPEAT_STOP_RECORD_VIDEO

The stopRecord API for video recording is called repeatedly.

For details, please refer to Constant-values.

[h2]RECORD_REPEAT_STOP_RECORD_GIF

Field

public static final int RECORD_REPEAT_STOP_RECORD_GIF

The stopRecord API for GIF image recording is called repeatedly.

For details, please refer to Constant-values.

[h2]RECORD_REPEAT_STOP_RECORD_VIDEO_GIF

Field

public static final int RECORD_REPEAT_STOP_RECORD_VIDEO_GIF

The stopRecord API for video and GIF image recording is called repeatedly.

For details, please refer to Constant-values.

[h2]RECORD_HAS_NOT_RECORD_VIDEO

Field

public static final int RECORD_HAS_NOT_RECORD_VIDEO

No animation is being recorded.

For details, please refer to Constant-values.

[h2]RECORD_HAS_NOT_RECORD_GIF

Field

public static final int RECORD_HAS_NOT_RECORD_GIF

No GIF image is being recorded.

For details, please refer to Constant-values.

[h2]RECORD_HAS_NOT_RECORD_VIDEO_GIF

Field

public static final int RECORD_HAS_NOT_RECORD_VIDEO_GIF

No video or GIF image is being recorded.

For details, please refer to Constant-values.

[h2]UNINIT_TO_START_RECORD_ANIMATION

Field

public static final int UNINIT_TO_START_RECORD_ANIMATION

The startRecord API is directly called without initialization.

For details, please refer to Constant-values.

[h2]UNINIT_TO_STOP_RECORD_ANIMATION

Field

public static final int UNINIT_TO_STOP_RECORD_ANIMATION

The stopRecord API is directly called without initialization.

For details, please refer to Constant-values.

[h2]UNGET_RENDERVIEW_TO_START_RECORD_ANIMATION

Field

public static final int UNGET_RENDERVIEW_TO_START_RECORD_ANIMATION

The startRecord API is called before a RenderView instance is obtained.

For details, please refer to Constant-values.

[h2]UNGET_RENDERVIEW_TO_STOP_RECORD_ANIMATION

Field

public static final int UNGET_RENDERVIEW_TO_STOP_RECORD_ANIMATION

The stopRecord API is called before a RenderView instance is obtained.

For details, please refer to Constant-values.

[h2]UNGET_RENDERVIEW_TO_UNBIND_VIEW

Field

public static final int UNGET_RENDERVIEW_TO_UNBIND_VIEW

The unBindRenderView API is called before a RenderView instance is obtained.

For details, please refer to Constant-values.

[h2]RECROD_VIDEO_GIF_TOO_SHORT_TIME

Field

public static final int RECROD_VIDEO_GIF_TOO_SHORT_TIME

The recording duration is too short.

For details, please refer to Constant-values.

[h2]RECORD_HAS_COMPUNDDING_VIDEO_GIF

Field

public static final int RECORD_HAS_COMPUNDDING_VIDEO_GIF

Animation or GIF image synthesis error.

For details, please refer to Constant-values.

[h2]RECORD_IS_RECORDDING_NOT_DOINT

Field

public static final int RECORD_IS_RECORDDING_NOT_DOINT

The recording is in progress. Do not perform initialization again.

For details, please refer to Constant-values.

[h2]RECORD_IS_RECORDDING_NOT_DESTORY

Field

public static final int RECORD_IS_RECORDDING_NOT_DESTORY

The recording is in progress. Do not destroy the view.

For details, please refer to Constant-values.

[h2]RECORD_ADD_FRAME_TIME_OUT

Field

public static final int RECORD_ADD_FRAME_TIME_OUT

Synthesis timed out.

For details, please refer to Constant-values.

[h2]RECORD_NOT_SUPPORT_VIDEO

Field

public static final int RECORD_NOT_SUPPORT_VIDEO

Video recording is not supported.

For details, please refer to Constant-values.

[h2]RECORD_OUTOF_MEMORY

Field

public static final int RECORD_OUTOF_MEMORY

Memory overflow occurs during animation recording.

For details, please refer to Constant-values.

[h2]RECORD_IS_RECORDDING_NOT_UNBIND

Field

public static final int RECORD_IS_RECORDDING_NOT_UNBIND

Calling the unBindRenderView API is not allowed when recording is in progress.

For details, please refer to Constant-values.

Public Constructors

[h2]ResultCode

Constructor

public ResultCode()

A default constructor used to obtain a ResultCode instance.