Fading Coder

One Final Commit for the Last Sprint

HarmonyOS Stage Model: Card Data Interaction

HarmonyOS Stage Model: Card Data Interaction
Through timed refresh and fixed-point refresh, developers can control the refresh frequency and timing of cards based on actual needs, thereby providing a better user experience. 2.1 Timed Refresh { "forms": [ { "name": "widget", "description": "This is a...

Swiper Component in HarmonyOS ArkUI

Swiper Component in HarmonyOS ArkUI
4. Auto Play When loop is set to true, you can continue swiping forward or backward even on the first or last page. If loop is false, swiping past the first or last page is disabled. @Entry @Component struct Index { private controller: SwiperController = new SwiperController() build() { Swiper(this....

Taro Framework Adaptation for HarmonyOS Development

Compilation ArchitectureHarmonyOS provides a distributed operating system environment, while Taro serves as a cross-platform framework enabling development with React or Vue. HarmonyOS JavaScript development aligns closely with Taro's paradigms, allowing Taro source code to be parsed and transformed...

HarmonyOS Development Guide: ArkUI Component Encapsulation Patterns

Overview During application development with HarmonyOS, encapsulating ArkUI components becomes essential for business reuse. Based on practical migration scenarios, three typical component encapsulation patterns have emerged: Public Component Encapsulation: Wrapping system components to provide unif...

Building Network, Database, and Notification Features in HarmonyOS Applications

Network Communication The network module enables applications to perform HTTP requests, establish WebSocket connections, and manage socket-based data transfers. Making HTTP Requetss To initiate an HTTP request: import http from '@ohos.net.http'; const client = http.createHttp(); client.request( 'htt...

HarmonyOS ArkTS State Management: A Comprehensive Guide to Decorators

HarmonyOS ArkTS State Management: A Comprehensive Guide to Decorators
Overview ArkUI provides a variety of decorators for state management, primarily divided into three categories: managing component-owned state, managing application-owned state, and other state management features. The following diagram illustrates the main decorators: Managing Component-Owned State...

Implementing Multi-Level Navigation in HarmonyOS with Navbar and TabBar

In HarmonyOS application development, routing and view switching are typically managed through state-decorated propertise and lifecycle-aware components. The following example demonstrates how to implement a tab-based interface using TabBar while isolating route state. @Entry @Component struct MainR...

Implementing QR Code Scanning with Camera, Media Library, and Image Processing in HarmonyOS

Overview This implemantation demonstrates QR code scanning using camera capture and media library integration. It supports real-time decoding from the camera feed and parsing QR codes from images selected from the device’s photo gallery. Key Features Real-time QR code detection via camera stream Man...

Implementing Immersive Windows and Picture-in-Picture Features in HarmonyOS

Demonstrates creation and control of primary and secondary windows, immersive mode, picture-in-picture playback, system bar queries, and configurable touch regions using HarmonyOS window management APIs. Functional Scenarios Video Window Playback Launch app and navigate to video screen. Tap video ar...

Implementing Event-Driven Shopping Features with Custom Emitter and Custom Dialogs in HarmonyOS

Project Structure Overview entry/src/main/ets/ |---ui-components | |---TabNav.ets // Bottom tab navigation panel | |---SpecSelector.ets // Product specification selection | |---PromoDialog.ets // Promotional overlay | |---ProductInfo.ets // Detailed product specs block | |---PriceTag.ets // Price di...