DEV Community

HarmonyOS
HarmonyOS

Posted on

📢 New Kit: What is Reader Kit? Everything You Need to Know About Huawei’s New Reading SDK

Read the original article:📢 New Kit: What is Reader Kit? Everything You Need to Know About Huawei’s New Reading SDK

Reader Kit (prepared on Canva)

Introduction

The Reader Kit offers e-book parsing, typesetting, and reading capabilities, enhancing the reading experience of multi-format e-books. Helps you quickly build reader capabilities, improve development efficiency, and enhance the reading experience. This article will cover what the Reader kit is, its restrictions, and provide a code example.

What is Reader Kit?

Reader Kit (reading service) provides developers with parsing, typesetting, and reading interaction capabilities for e-books in multiple formats. Developers can utilize the capabilities and components of Reader Kit to build book-reading capabilities quickly. This kit was released on 2025/03/29 with API 16.

Constraints and Restrictions

  • During book processing, Reader Kit only supports books with local files and does not support online file streaming.
  • During the book processing, Reader Kit does not provide DRM protection capabilities for books.
  • The parsing capability only supports parsing book files in txt, epub, mobi, azw, and azw3 formats.
  • The typesetting engine and interactive capabilities require the use of the ReadPageComponent of the Reader Kit.
  • Reader Kit is only available for mobile phones, tablets, PC/2in1 devices with HarmonyOS NEXT 5.0.4 and above, and does not currently support use with simulators.
  • Reader Kit currently only provides services in China.

Capabilities

Reader Kit provides the following capabilities:

  • Provides the ability to parse books in txt, epub, mobi, azw, and azw3 formats, and can obtain the book title, author, book cover, table of contents, and the text content corresponding to the table of contents.
  • Supports paging typesetting of standard TXT and rich text content (HTML+CSS) in simulation and horizontal sliding modes, and provides typesetting snapshots and typesetting information.
  • Supports the display of book layout content, various page-turning interactions, and page-turning animations. You can try this kit by clicking on this codelab.

Output

Conclusion

The Reader Kit offers e-book parsing, typesetting, and reading capabilities, enhancing the reading experience of multi-format e-books. It is only available for mobile phones, tablets, PC/2in1 devices with HarmonyOS NEXT 5.0.4 and above in China. However, it will be available when HarmonyOS Next mobile devices arrive in Türkiye.

References

https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/reader-kit-guide?source=post_page-----16ce0529490b---------------------------------------

https://developer.huawei.com/consumer/cn/doc/harmonyos-references/reader-api?source=post_page-----16ce0529490b---------------------------------------

https://forums.developer.huawei.com/forumPortal/en/topic/0201189851225088054?fid=0102647487706140266

Written by Merve Yonetci

Top comments (0)