目录

About This Kit

Pen Kit is a handwriting suite provided by Huawei. It provides functions such as brush effect, handwriting editing, point prediction, instant shape, global color picker, and stylus interaction. Pen Kit can bring a premium handwriting experience to your products and create more handwriting application scenarios.

Pen Kit currently features five capabilities: handwriting suite, point prediction, Instant Shape, global color picker, and stylus interaction.

Handwriting Suite

It can be directly integrated into apps. After that, the apps will have the following features:

Point Prediction

Touch points can be predicted and drawn in advance based on the writing track, reducing the latency. This capability is enabled in the handwriting suite by default, and can be integrated into your app on a separate basis.

Instant Shape

This capability can be triggered by holding the stylus/finger on the screen for a certain period of time when a stroke ends and then identifies the stroke as a regular shape. It is enabled in the handwriting suite by default, and can be integrated into your app on a separate basis. Pen Kit can identify the following shapes:

Type Shape
Line segment Straight line segment, line segment with arrow(s)
Circle Circle, oval
Polygon Triangle, rectangle, parallelogram, diamond, pentagon, pentagram
Curve Parabola, parabola with arrow(s)

Global Color Picker

It provides the basic capability of picking colors from the entire screen.

Stylus Interaction

It provides the capability of listening for stylus double-tap and squeeze events.

Restrictions

[h2]Supported Countries/Regions

Currently, this kit is available only in the Chinese mainland.

[h2]Supported Devices

This kit is applicable only to phones, tablets, and PCs/2-in-1 devices.

For details about the models of phones, tablets, and PCs/2-in-1 devices that support stylus hardware, please refer to the list of HUAWEI phones that are compatible with the stylus and the list of HUAWEI tablet/laptop models that support HUAWEI styluses.

Emulator Support

Currently, this kit is not supported on the Emulator.