To facilitate developers to develop key functions or scenarios, this page summarizes the current Codelabs resources, as shown in the following table:
Name | Overview | Device Type |
|---|---|---|
Based on the stage model, learn how to implement page redirection within a UIAbility. | Phone | |
This codelab introduces UIAbility and the custom component lifecycle during application running. | Phone |
Name | Overview | Device Type |
|---|---|---|
This codelab introduces how to add, delete, modify, and query data in a relational database (RDB) store. | Phone | |
Learn to access and operate local application data based on preferences. | Phone | |
Learn to access and operate local application data based on preferences. | Phone | |
Based on the custom dialog box, Preferences, and page router, learn to emulate the first launch of an app. | Phone | |
With Contacts as an example, learn to create a distributed key-value (KV) store and how to add, delete, modify, query, and synchronize data. | Phone | |
Based on distributed data objects and distributed files, learn to implement distributed mail applications. | Phone |
Name | Overview | Device Type |
|---|---|---|
Based on the rendering control syntax and component basics, learn how to build a ranking page that can be refreshed. | Phone | |
Based on the ArkTS syntax, learn how to implement some basic algorithms. | Phone |
Name | Overview | Device Type |
|---|---|---|
Based on ArkTS, learn how to use the List component to implement lazy loading, pull-to-refresh, and scroll bounce. | Phone | |
Based on ArkTS, learn how to use the List component and router to implement a setting list. | Phone | |
Based on ArkTS and Swiper container, learn how to implement top navigation, ad carousel, and more. | Phone | |
This codelab introduces how to use the WaterFlow container. As shown in the figure, the child components with different heights are arranged in a waterfall layout. | Phone | |
Based on the ArkTS declarative syntax and basic ArkTS components, learn how to implement a simple to-do list. | Phone | |
Based on the Flex container features, learn how to implement flexible layout. | Phone | |
Learn how to implement an electronic album based on ArkTS. Use pinch and drag gestures to zoom in/out an image, and drag an image to view details. | Phone | |
Learn how to add animation to component properties based on ArkTS to improve user experience. | Phone | |
Based on ArkTS language, learn how to implement cascading between navigation and content. | Phone | |
Learn to implement the animation effect of adjusting the size and rotational speed of the windmill using the Slider component. | Phone | |
Based on basic components and containers, learn how to implement a calculator. | Phone | |
Based on ArkTS and transition animation APIs, learn how to implement a series of page transition animations. | Phone | |
This codelab introduces the animation attributes of a component. With property animations, you can animate changes to certain component properties. | Phone | |
Learn how to implement a verification code login case based on window management. | Phone | |
Learn to use DevEco Studio to efficiently develop a login app. | Phone | |
Learn to invoke and use the community library and local library based on the ArkTS. | Phone | |
Learn how to implement an app that introduces Xiliubeipo Village based on ArkUI. | Phone | |
Based on the Canvas component, learn how to customize the prize wheel. | Phone | |
This codelab introduces how to implement four types of dialog boxes, including the alert dialog box, custom dialog box, date picker dialog box, and text picker dialog box. | Phone | |
This codelab introduces how to set the alignment modes of child components in the Flex, Column, Row, and Stack containers. You will learn to use alignItems, justifyContent, alignContent, alignSelf, and align to set alignment modes in different containers. | Phone |
Name | Overview | Device Type |
|---|---|---|
The interaction between H5 and ArkTS is realized based on Web components and JSBridge bridging. | Phone | |
This codelab uses ArkTS to implement a simple login-free process and introduces basic cookie operations. | Phone |
Name | Overview | Device Type |
|---|---|---|
Learn how to implements file management, including reading/saving app files, user image files, and user TXT files. | Phone |
Name | Overview | Device Type |
|---|---|---|
This codelab walks you through the process of calling icon processing APIs provided by UI Design Kit with great ease to develop icons that can seamlessly integrate with the HarmonyOS ecosystem, delivering a consistent and premium user experience across all devices. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Account Kit, which is built on the OAuth 2.0 and OpenID Connect protocols, enables an app to easily obtain HUAWEI ID users' identifiers and mobile numbers through one-tap sign-in, facilitating the establishment of a user system within the app. | Phone, Tablet, PC/2in1, TV | |
Account Kit empowers your atomic service with a simple, swift, and secure sign-in mechanism, enabling users to seamlessly sign in using their HUAWEI IDs. Upon user authorization, Account Kit grants your atomic service access to user information, including the mobile number, fostering a deeper understanding of your atomic service's user base. | Phone, Tablet | |
In this codelab, you will implement and experience functions such as obtaining the youth mode status, subscribing to common events related to the youth mode, and enabling or disabling the youth mode. | Phone, Tablet, PC/2in1 | |
In this codelab, you will implement and experience functions such as obtaining the youth mode status, subscribing to common events related to the youth mode, and enabling or disabling the youth mode. | Phone, Tablet |
Name | Overview | Device Type |
|---|---|---|
This codelab will guide you to obtain and display banner ads in your app through APIs. | Phone, Tablet | |
This codelab will guide you to obtain and display interstitial ads in your app through APIs. | Phone, Tablet | |
This codelab will guide you to obtain and display native ads in your app through APIs. | Phone, Tablet | |
This codelab will guide you to obtain the Open Anonymous Device Identifier (OAID) in your app through an API. | Phone, Tablet, PC/2in1, TV | |
This codelab will guide you to obtain and display rewarded ads in your app through APIs. | Phone, Tablet | |
This codelab will guide you to obtain and display roll ads in your app through APIs. | Phone, Tablet | |
This codelab will guide you to obtain and display splash ads in your app through APIs. | Phone, Tablet |
Name | Overview | Device Type |
|---|---|---|
Based on the stage model, this codelab implements features such as displaying an app details page for downloading and installing the target app, querying the ad signature verification version, obtaining module installation information, adding modules for on-demand loading, and performing app attribution. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Learn to implement the download notification based on the HarmonyOS notification capability. | Phone |
Name | Overview | Device Type |
|---|---|---|
This codelab guides you through how to use Call Kit to send incoming call notifications to the system when the app process is running in the background. | Phone |
Name | Overview | Device Type |
|---|---|---|
This codelab will guide you through how to use Cloud Foundation Kit to interact with the cloud in your app. | Phone |
Name | Overview | Device Type |
|---|---|---|
You will use Game Service Kit to quickly develop functions such as game sign-in, compliance verification, and player role information submission. | Phone, Tablet, PC/2in1, TV | |
This codelab introduces how your game sends data to the system and obtains device status through game scene perception. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Health Service Kit provides an open platform for Huawei ecosystem apps to access fitness and health data of users. | Phone, Tablet |
Name | Overview | Device Type |
|---|---|---|
Learn to use IAP Kit to build an app where users can buy consumables and that works with the delivery acknowledgement API for repurchase. | Phone |
Name | Overview | Device Type |
|---|---|---|
Implement a pedometer app based on the pedometer sensor, location service, and background tasks. | Phone |
Name | Overview | Device Type |
|---|---|---|
Map Kit is a powerful service within the HarmonyOS ecosystem. It empowers developers to effortlessly create customized map experiences by offering robust capabilities such as personalized map display, map search, and route planning. You can easily integrate map-related functions into HarmonyOS apps or atomic services to enhance user experience. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Based on the PDF open service, the Codelab enables applications to access the PDF capability. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Provides preview services for basic files based on Files. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Retrieval of system attributes via API calls based on Scenario Fusion Kit | This codelab illustrates scenario-specific APIs provided by Scenario Fusion Kit, which can be used to obtain system information and location information. | Phone, Tablet, PC/2in1, Wearable, TV |
Scenario-specific button components built based on Scenario Fusion Kit | This codelab illustrates how to use scenario-specific APIs buttons provided by Scenario Fusion Kit, including quick mobile number verification, avatar selection, and authorization setting page display buttons. | Phone, Tablet, PC/2in1, TV |
Intelligent input suggestions and filling based on Scenario Fusion Kit | This codelab illustrates how to use SmartFill to offer scenario-specific input suggestions to realize one-tap filling of complex forms for users. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
This codelab describes how to use Share Kit to share data between apps. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Wallet Kit integrates the open capabilities of the end-to-end "chip-device-cloud" technology, providing digital passes such as car keys and transportation cards. Users can easily store these digital passes on their mobile phones for convenient use whenever needed. A user can enable a digital car key in HUAWEI Wallet to use their phone to unlock their car through Bluetooth, instead of using a physical key. A digital car key can be easily shared with others (such as family members). It will not be long before this technology is widely applied in the automotive industry of the Chinese mainland. | Phone |
Name | Overview | Device Type |
|---|---|---|
Learn how to edit images based on image encoding and decoding, including cropping, rotation, and color gamut adjustment. | Phone |
Name | Overview | Device Type |
|---|---|---|
Based on HarmonyOS AVPlayer, learn how to implement video playback. | Phone | |
This codelab uses ArkTS to implement a video player, including its main page and video playback page. | Phone |
Name | Overview | Device Type |
|---|---|---|
HarmonyOS integrates Ringtone Kit for developers to use the kit's open capabilities in building smart ringtone service scenarios. | Phone, Tablet |
Name | Overview | Device Type |
|---|---|---|
This sample code demonstrates how to integrate "scan-to-access" to redirect users to a specific in-app service page in just one step and use Scan Kit's functions of recognizing, scanning, and generating barcodes, including image-based barcode recognition, barcode scan by default UI, barcode scan by custom UI, and barcode image generation. | Phone, Tablet |
Name | Overview | Device Type |
|---|---|---|
This sample code illustrates how to use APIs of the navigation information service and mobility distributed engine service. | Phone |
Name | Overview | Device Type |
|---|---|---|
Device Security Kit provides the DeviceVerify function to detect and manage the usage status of an app on a specific device. | Phone, Tablet, PC/2in1 | |
Device Security Kit provides the TrustedAppService function to implement image security verification and location security verification, preventing images or location data obtained by apps from being tampered with. | Phone | |
Provides business risk intelligent detection for anti-cheating, anti-fraud, and violation check. | Phone, Tablet | |
This sample code illustrates how to obtain the system integrity check and URL check results in an app. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
This codelab illustrates how to implement functions for scanning files in the media library directory and app sandbox directory through this Kit. | PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
This codelab introduces how to implement an HTTPS request based on the network module and Webview, and capture and analyze packets during the process. | Phone | |
This codelab gives an example of ArkTS declarative development, introducing how to use the data request and onTouch event. | Phone | |
This codelab introduces how to develop a news release app. | Phone |
Name | Overview | Device Type |
|---|---|---|
Offers a solution that enhances network performance through acceleration, awareness, and prediction capabilities. By coordinating software, hardware, chips, devices, pipes, and cloud resources, it optimizes network resource allocation for a more reliable, smoother, and faster Internet experience. | Phone |
Name | Overview | Device Type |
|---|---|---|
This codelab describes how to use the IFAA password-free identity verification capability provided by HarmonyOS | Phone, Tablet, PC/2in1 | |
This codelab describes how to use the FIDO password-free identity verification capability provided by HarmonyOS. | Phone, Tablet, PC/2in1 | |
This codelab describes how to use the SOTER password-free identity verification capability provided by HarmonyOS | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Pen Kit is a handwriting suite provided by Huawei. It provides a wide array of enriching features, such as brush effects, handwriting editing, point prediction, and Instant Shape. It allows developers to easily integrate the handwriting feature to the stylus pen for a premium handwriting experience and extends the use of the stylus pen in more scenarios. This sample code shows how to integrate the capabilities provided by Pen Kit. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Remote Communication Kit is a network request service in the HarmonyOS ecosystem which can easily integrate functions related to network. | Phone |
Name | Overview | Device Type |
|---|---|---|
Service Collaboration Kit provides the capability of multi-device collaboration based on the same account. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Wear Engine is designed for developers of apps and services running on phones and wearable devices. | Phone, Tablet |
Name | Overview | Device Type |
|---|---|---|
Learn how to implement graphics rendering based on XComponent. | Phone | |
Based on the Native C++ template, learn how to implement the function of calling the C standard library through the NAPI. | Phone |
Name | Overview | Device Type |
|---|---|---|
The Core Vision Kit provides visual AI capabilities, including text recognition, face detection, face comparison, and subject segmentation. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Integrates basic voice AI capabilities to facilitate interaction between users and devices and implement real-time voice-text conversion. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Intents Kit for HarmonyOS defines standards for intents, linking functions of apps or atomic services. It helps you intelligently distribute functions of apps or atomic services to system access points. This process is called smart distribution. The system access points include Celia Chat, Celia Search, and Celia Suggestions.The following figure shows the relationships among system access points, Intents Kit, and the HarmonyOS ecosystem. | Phone, Tablet |
Name | Overview | Device Type |
|---|---|---|
Provides the image classification capability powered by CANN Kit for running AI models. | Phone, Tablet, PC/2in1, TV |
Name | Overview | Device Type |
|---|---|---|
The Natural Language Kit provides multiple basic capabilities related to text semantic understanding for processing and analyzing text data. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Integrates voice AI capabilities, including the TextReader capability, so that users can interact with devices and read articles aloud. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
This example shows the face liveness detection, card recognition, and document scanning capabilities. | Phone, Tablet, PC/2in1 |
Name | Overview | Device Type |
|---|---|---|
Graphics Accelerate Kit - OpenGTX Example (C++) The low-temperature polycrystalline oxide (LTPO) function for a dynamic frame rate or refresh rate is provided based on OpenGTX APIs offered by Graphics Accelerate Kit, helping you create an ultimate game experience with superior image quality, high smoothness, and low power consumption. | Phone, Tablet | |
Graphics Accelerate Kit - Frame Generation Example of OpenGL ES (C++) | The frame generation capability is provided in graphics rendering scenes based on frame generation APIs offered by Graphics Accelerate Kit. | Phone, Tablet |
Graphics Accelerate Kit - Frame Generation Example of Vulkan (C++) | The frame generation capability is provided in graphics rendering scenes based on APIs offered by Graphics Accelerate Kit using Vulkan. | Phone, Tablet |
The adaptive buffer resolution (ABR) capability is provided in graphics rendering scenes based on ABR APIs offered by Graphics Accelerate Kit. | Phone, Tablet |
Name | Overview | Device Type |
|---|---|---|
XEngine Kit provides the GPU spatial upscaling capability (based on Vulkan), which reconstructs lower-resolution images into higher-resolution ones. | Phone, Tablet, PC/2in1, TV | |
XEngine Kit provides the GPU spatial upscaling capability (based on GLES), which reconstructs lower-resolution images into higher-resolution ones. | Phone, Tablet, PC/2in1, TV | |
XEngine Kit provides the AI spatial upscaling capability (based on GLES). By leveraging the cooperation between GPU and NPU, it reconstructs lower-resolution images into higher-resolution ones. | Phone, Tablet, PC/2in1, TV | |
XEngine Kit offers adaptive VRS capability (based on GLES), which optimizes resource allocation to reduce the rendering frequency without visual loss, allowing for higher rendering performance. | Phone, Tablet, PC/2in1, TV | |
XEngine Kit offers adaptive VRS capability (based on Vulkan), which optimizes resource allocation to reduce the rendering frequency without visual loss, allowing for higher rendering performance. | Phone, Tablet, PC/2in1, TV | |
XEngine Kit provides the Subpass Shading capability (based on Vulkan) to lower the double data rate (DDR) bandwidth and improve the GPU performance. | Phone, Tablet, PC/2in1, TV |