目录
DlpAntiPeep (Screen Privacy)
Network Pre-connection During Cold Start
Optimization in Live Streaming Under Poor Network Conditions
Full-Link Stock Tracking Development Practice
Best Practices
Architecture Overview
Layered Architecture Design
Modular Design
Layout Optimization
Grid Item Drag-and-Drop
Implementing Image Carousels Using the Swiper Component
Image Previewer
Comment Dialog Box
DialogHub-based Common Dialog Box
ScrollComponents-based Waterfall Layout
Common Operations on Waterfall Layouts
ScrollComponents-based Grid Layout
ScrollComponents-based List Layout
Common Development Scenarios of Tabs
Common List Operations
Dialog Box Component Encapsulation
Rich Text Editor
State Management
Optimization for Minimizing Redundant Re-rendering
StateStore-based Global State Management
Common Navigation Styles
HMRouter-based Page Redirection
Solution to Gesture Event Conflicts
Animation Usage Guide
Long-Take Animation
Dark Mode Adaptation
Page Brightness Settings
Custom Font Settings
colorFilter-based Image Filter Effect
Image Resizing with the resizable Attribute
ArkTS High-Performance Programming
Application Concurrency Design
Comparison Between TaskPool and Worker
TaskPool Usage Guidelines
Aspect-Oriented Programming Design
Application Tracking
Aspect-Oriented Programming Based on the Aspect Plug-in Library
Bytecode Instrumentation Based on AbcKitTS
Home Screen Shortcuts
Calling APIs Across HAR/HSP Modules on the Native Side
App Icon Configuration and Development
Inter-Application Redirection
Social Sharing Redirection
Ad Redirection
Special Text Recognition Redirection
Redirecting and Starting Between Web Pages and Applications
Multi-Window
Irregularly Shaped Windows on PCs or 2-in-1 Devices
Soft Keyboard Layout Adaptation
Custom Keyboard
Multithreaded Operations for Intensive Relational Store and File Read/Write Tasks
ArkWeb Rendering Framework Adaptation
Rendering Native Components at the Same Layer
Video Adaptation on Web Pages
Web Page Cross-Origin Solutions
Using the Web Component Interception Capability
Bluetooth Low Energy
SFFT-based High-Speed Concurrent File Transfer
Optimizing Deferred Photo Delivery
Solution to Screen Artifacts During Camera Preview
Customizing Camera Preview
Customizing Photo Capture
Custom Video Recording
Obtaining and Storing Images
Long Screenshot
Basic Playback Controls with AVPlayer
Overview
PCM Audio Playback Using AudioRenderer
PCM Audio Playback Using OHAudio
Formatted Audio Playback Using AVPlayer (ArkTS)
Formatted Audio Playback Using AVPlayer (C++)
Short Audio Playback Using SoundPool
Overview
Recording PCM Audio Using AudioCapturer (ArkTS)
Recording PCM Audio Using OHAudio (C++)
Recording Formatted Audio Using AVRecorder (ArkTS)
Recording Formatted Audio Using AVRecorder (C++)
Recording Audio Using AVScreenCapture
Playing Long Videos Using the Video Component
Playing Short Videos Using the Video Component
Video Encoding in Surface Mode
Audio Focus Management
HDR Vivid Video Playback and Recording
HDR Vivid-to-SDR Video Transcoding
Obtaining Video Thumbnails Using System Capabilities
Audio Quality Switching
Image-to-Video Synthesis
Audio Waveform Animation Based on AudioRenderer and AudioCapturer
Audio Monitoring Based on Audio Capabilities
Audio Input Device Management
Audio Output Device Management
Custom Drawing Performance Improvement
Adding Watermarks
Recording Playback Timeline Built on Canvas
Image Blurring Optimization
Maleoon GPU Rendering Optimization
Location Positioning
Lock Screen Immersive Live Views
Setting Thread Priority in Heavy-Load Scenarios
Implementing Communication Between Native Child Threads and the UI Main Thread
Overview
Getting Started with an Example
Cross-Device Experience Design
Window Mode
Window Orientation
Immersive Window
Layout
Responsive Layout
Page Layouts
Component Layout
Screen Type-based Layout
Adaptive Layout
Semi-Folded State of Foldable Screens
Responsive Layout on Web
App Multiplier
Interactions Across Devices
Cross-Device Resource Files
Long Video
Stock
Business Office
Music Player
Shopping
Travel Booking
Map Navigation
Lifestyle
Bank Wealth Management
Community Comment
News & Reading
Mobile Payment
Instant Messaging
Image Beautification
Gaming
Settings
Short Video
Cross-Device Feature Development
Cross-Device Camera Interface Adaptation
Cross-Device Screen Adaptation
Cross-Device Project Deployment and Release
Hopping Overview
App Continuation Overview
App Continuation for Data Migration
Common Continuation
Video Casting
Audio Casting
Drag-and-Drop Across Devices
Unified Drag-and-Drop
Cross-Device Pasteboard
Common Scenarios of Cross-Device Pasteboard
Tap to Transfer for Links
Tap to Transfer for Files
Grab & Drop
All-Scenario Collaboration for Office Editing
Smart Watch Map Navigation
All-Scenario Collaboration for Social Communication
Bi-fold Phone App Development
Widescreen Foldable Phone App Development
Tri-Fold Phone App Development
Tablet App Development
PC App Development
Foldable PC App Development
Wearable App Development
Lite Wearable App Development
Vision App Development
Smooth Home Page News Feeds
Page Turning in a Reader
Seamless Transition of Online Short Videos
Short Video Adaptation Based on the adaptive_video Library
Unicast Live Streaming Based on Media Capabilities
Live Co-Hosting Based on Media Capabilities
Landscape/Portrait Mode Switching of Video Apps
Bike Sharing
AI-Enhanced Image and Text Creation
Application Security Coding
Application Code Obfuscation
Application Permission Request
Cross-Platform Encryption and Decryption
Usage of Device Identifiers
Secure Development with the ArkWeb Component
Application Quality Overview
Performance Experience Design
Detecting Startup Duration Issues
Detecting Main Thread Jank Issues
Detecting Frame Loss During Scrolling
Introduction to Performance Profiling
Analyzing Touch Response Latency of Web Pages
Analyzing Loading Completion Latency of Web Pages
Analyzing Web Frame Rate Issues
Analyzing Time-Consuming Issues in Cross-Thread Serialization
Memory Basics
Obtaining Memory Information of a Process
Analyzing ArkTS/JS Memory
Analyzing Native Memory
Analyzing Kernel-Mode Memory
Analyzing Task Execution Timeout
Optimizing Perception of Smoothness
Controlling Rendering Range
Reducing Layout Nodes
Optimizing Component Rendering
Controlling State Update
Optimizing the Animation Frame Rate
Using Concurrency
Loading Resources in Advance
Improving Running Efficiency
Reducing Time-consuming Operations
Delaying Operation Trigger
Optimizing Component Nesting
Optimizing Performance Using LazyForEach
Optimizing Performance of UI Components
Optimizing Time-Consuming Operations in the Main Thread
Frame-based Rendering in Heavy-Load Scenarios
Optimizing Frame Loss for Long List Loading
Optimizing Frame Loss for Waterfall Loading
Optimizing Frame Loss for Grid Component Loading
Optimizing Frame Loss During Swiper Component Loading
Reducing Application Latency
Reducing Application Package Size
Reducing Application Memory Usage
Optimizing Image Loading
Optimizing File Upload and Download
Optimizing Web Loading Performance
Solution to Screen Flickering
Solution to White Image Blocks
High-Performance JSON Parsing
High-Performance Protobuf Parsing
Parallelization Performance Optimization
Power Consumption Overview
User Experience on Application Power Consumption
Scenario-based Power Consumption Test
Basic Power Consumption Quality Test
Power Consumption Detection in Running State
High CPU Load Analysis
Analysis of Invisible Foreground Animation Issues
Analysis of Empty Running Issues of the App UI Process
Analysis of Issues When the Self-Rendered Layer Does Not Use Hardware Composition
Analysis of Issues When Apps Are Prohibited from Using Sensors in the Background
Low-Power Design in Power Saving and Dark Modes
LTPO-based Low-Power Design
HWC-based Low-Power Design
Low-Power Rules in Music Playback Scenarios
Low-Power Rules in Navigation and Positioning Scenarios
Low-Power Rules in Static Scenarios
Low-Power Rules in Video Encoding and Decoding Scenarios
Low-Power Rules in Video Bullet Comment Drawing Scenarios
Low-Power Suggestions for Storing Video Sources to the ROM
Low-Power Suggestions for Layer Composition in Video Scenarios
Low-Power Suggestions for Wi-Fi Loading in Video Scenarios
Low-Power Suggestions for Network Resources Preloading
Low-Power Suggestions for Invisible Components
Proper Use of Background Tasks
Management of Background Applications
CPU Usage
Bluetooth Resources
Network Resources
Audio Resources
GPS Resources
Sensor Resources
Upload and Download
Audio Playback
Positioning and Navigation
System Resources
Vsync Low-Power Optimization
Buffer Low-Power Optimization
Typical Out-of-Bounds Access Issues
Principles of Out-of-Bounds Access Detection Tools
ASan: Detecting Memory Errors
HWASan: Detecting Memory Errors
Using TSan to Detect Thread Issues
Detecting JavaScript Memory Leaks
Detecting Native Memory Leaks
ArkCompiler: Detecting Runtime Issues
UBSan: Detecting Undefined Behavior
Detecting Application Kill Events
Analyzing Resource Leaks
Stability O&M
Customizing the Hvigor Plugin
Building Multi-Target Products
Automated Testing Framework
Application Privacy Protection
Application Data Security
Application Asset Protection Design
Development-State Stability Detection
Out-of-Bounds Access Detection
Detection of Thread Concurrency Issues
Resource Leak Detection
ArkCompiler: Detecting Issues
UBSan: Detecting Undefined Behavior