目录

native_handwrite_api.h

Overview

Declares the handwriting capability.

Library: libhandwrite_ndk.z.so

File to include: <handwrite/native_handwrite_api.h>

System capability: SystemCapability.Stylus.Handwrite

Since: 6.0.0(20)

Related module: HandWrite

Summary

[h2]Structs

Name Description
struct HandWrite_HistoricalPoint Defines the struct of historical touch point information.

[h2]Enums

Name Description

Handwrite_ErrCode {

E_NO_ERROR = 0,

E_PARAMS = 401,

E_INNER_ERROR = 1010400001,

E_PERMISSION = 201

}

Defines the handwriting error codes.

[h2]Functions

Name Function
int32_t HMS_HandWrite_GetPredictPoint(const HandWrite_HistoricalPoint *event, int32_t size, float *predictPointX, float *predictPointY) Obtains the prediction point.

[h2]Functions

Name Function
int32_t HMS_HandWrite_SetRefreshDelayOff(const char* xcomponentId, const bool enable) Reduces the stylus writing latency for note-taking apps.