文档管理中心
我的

您当前正在浏览HarmonyOS最新文档,覆盖已发布的所有API版本,可在API参考中筛选您使用的API版本。详细的版本配套关系请参考版本说明。

指南与API参考API参考系统硬件Pen Kit(手写笔服务)C API头文件和结构体头文件native_handwrite_api.h

native_handwrite_api.h

Phone6.0.0(20)+PC/2in16.0.0(20)+Tablet6.0.0(20)+

概述

声明用于对外提供手写能力。

库: libhandwrite_ndk.z.so

引用文件: <handwrite/native_handwrite_api.h>

系统能力: SystemCapability.Stylus.Handwrite

起始版本: 6.0.0(20)

相关模块: HandWrite

汇总

结构体

展开
名称 描述
struct HandWrite_HistoricalPoint 定义历史触摸点信息的结构体。

枚举

展开
名称 描述

Handwrite_ErrCode {

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) 此接口用于笔记类应用提升手写笔书写时延。