| 名称 | 描述 |
|---|---|
| E_NO_ERROR = 0, E_PARAMS = 401, E_INNER_ERROR = 1010400001, E_PERMISSION = 201 } | 定义手写错误码。 |
| 名称 | 函数 |
|---|---|
int32_t HMS_HandWrite_GetPredictPoint(const HandWrite_HistoricalPoint* event, int32_t size, float *predictPointX, float *predictPointY) | 此接口用于获取预测点。 |
| int32_t HMS_HandWrite_SetRefreshDelayOff(const char* xcomponentId, const bool enable) | 此接口用于提升手写笔书写时延。 |
enum Handwrite_ErrCode
描述
定义手写错误码。
起始版本: 6.0.0(20)
| 枚举值 | 描述 |
|---|---|
| E_NO_ERROR = 0 | 执行成功。 |
| E_PARAMS = 401 | 输入参数无效。 |
| E_INNER_ERROR = 1010400001 | 系统内部错误,相关资源加载失败。 |
| E_PERMISSION = 201 | 权限校验失败。 起始版本: 26.0.0 |
int32_t HMS_HandWrite_GetPredictPoint(const HandWrite_HistoricalPoint* event,
int32_t size, float *predictPointX, float *predictPointY) 描述
此接口用于获取预测点。
起始版本: 6.0.0(20)
| 名称 | 描述 |
|---|---|
| event | 指示输入的历史点。 |
| size | 历史点的个数。 |
| predictPointX | 接收预测点X坐标的指针。 |
| predictPointY | 接收预测点Y坐标的指针。 |
返回: 手写错误码HandWrite_ErrCode:
E_NO_ERROR 0 - 执行成功。
E_PARAMS 401 - 输入参数无效。
E_INNER_ERROR 1010400001 - 系统内部错误,相关资源加载失败。
int32_t HMS_HandWrite_SetRefreshDelayOff(const char* xcomponentId, const bool enable)
描述
此接口用于笔记类应用提升手写笔书写时延。
起始版本: 26.0.0
| 名称 | 描述 |
|---|---|
| xcomponentId | 自绘制控件的id。 |
| enable | 启用或禁用加速功能。 |
返回: 手写错误码HandWrite_ErrCode:
E_NO_ERROR 0 - 执行成功。
E_PERMISSION 201 - 权限校验失败。
E_INNER_ERROR 1010400001 - 系统内部错误,相关资源加载失败。