简体中文
简体中文
English
Русский
下载 App
探索
探索
了解鸿蒙应用和多设备开发,学习如何构建应用/元服务
应用形态
HarmonyOS 应用
One as All,All as One
元服务
秒开直达 服务随行 无处不在
游戏
为游戏创意玩法带来无限可能
多设备应用开发
穿戴
折叠屏手机
鸿蒙电脑
开发者学堂
视频课程
Codelabs
设计
设计
了解鸿蒙应用和多设备开发,学习如何构建应用/元服务
开发
开发
获取官方开发工具和文档等资源,将创意转化为鸿蒙应用
开发工具
DevEco Studio
应用开发 IDE, AI Agent 和 CLI
小艺开放平台
Skill 和智能体开发平台
ArkTS
ArKUI
AppGallery Connect
DevEco Testing
开发资源
工具下载
示例代码
开发文档
最佳实践
分发
分发
通过华为应用市场发布你的应用,多渠道触达用户
应用分发
应用市场
纯净安全的全场景应用分发平台
游戏中心
应用审核政策
服务分发
小艺
HarmonyOS 的超级 AI 入口
智慧助手·今天
服务分发文档
内容分发
主题服务
内容分发文档
推广与变现
推广与变现
一站式流量增长与营销变现平台
推广
应用推广引擎
全链路应用推广与增长服务平台
鲸鸿动能广告
为企业广告主提供广告营销服务
联运服务
推广文档
变现
鲸鸿动能流量变现
使能应用展示广告,实现流量变现
应用内支付
变现文档
生态合作
生态合作
携手伙伴共建共享鸿蒙智能终端生态
伙伴 SDK
一站式获取安全可靠的鸿蒙伙伴 SDK
生态服务
鸿蒙应用开发、培训和人力服务
服务商伙伴中心
华为终端云服务商伙伴的统一门户
伙伴入驻指南
生态市场介绍,卖家和买家服务指引
廉洁政策
合作伙伴诚信廉洁政策
支持
支持
获取客服帮助、技术支持、活动资讯等信息
智能客服
24小时 AI 在线自助服务,即问即答
社区问答
在官方论坛提问,与开发者互动交流
在线提单
提交工单,获得技术支持
开发者活动
HDD 等线下活动速览及报名入口
资讯
帮助指南
输入关键字搜索
开发者能力认证
鸿蒙高校创新赛
HarmonyOS 7
animation
HarmonyOS行业解决方案
layoutWeight
HarmonyOS模板&组件
bindPopup
bindsheet
CTRL+K
文档
管理中心
我的
Hello,
欢迎来到开发者联盟
管理中心
个人中心
我的学堂
我的收藏
我的活动
我的工单
立即登录
输入关键字搜索
开发者能力认证
鸿蒙高校创新赛
HarmonyOS 7
animation
HarmonyOS行业解决方案
layoutWeight
HarmonyOS模板&组件
bindPopup
bindsheet
CTRL+K
更多
高级筛选
API version
全部版本
只看筛选内容
ArkTS API参考
Archived
系统能力SystemCapability使用说明
系统能力SystemCapability列表
ArkTS接口参考
开发说明
Ability框架
Stage模型能力的接口(推荐)
@ohos.app.ability.Ability (Ability基类)
@ohos.app.ability.AbilityConstant (AbilityConstant)
@ohos.app.ability.abilityLifecycleCallback (AbilityLifecycleCallback)
@ohos.app.ability.AbilityStage (AbilityStage)
@ohos.app.ability.common (应用上下文Context)
@ohos.app.ability.contextConstant (ContextConstant)
@ohos.app.ability.EnvironmentCallback (EnvironmentCallback)
@ohos.app.ability.ExtensionAbility (扩展能力基类)
@ohos.app.ability.UIAbility (UIAbility)
@ohos.app.form.FormExtensionAbility (FormExtensionAbility)
FA模型能力的接口
@ohos.ability.ability (Ability)
@ohos.ability.featureAbility (FeatureAbility模块)
@ohos.ability.particleAbility (ParticleAbility模块)
通用能力的接口(推荐)
@ohos.app.ability.abilityDelegatorRegistry (AbilityDelegatorRegistry)
@ohos.app.ability.appManager (appManager)
@ohos.app.ability.appRecovery (appRecovery)
@ohos.app.ability.Configuration (Configuration)
@ohos.app.ability.ConfigurationConstant (ConfigurationConstant)
@ohos.app.ability.dataUriUtils (DataUriUtils模块)
@ohos.app.ability.dialogRequest (dialogRequest模块)
@ohos.app.ability.errorManager (ErrorManager)
@ohos.app.ability.Want (Want)
@ohos.app.ability.wantAgent (WantAgent模块)
@ohos.app.ability.wantConstant (wantConstant)
@ohos.app.form.formBindingData (卡片数据绑定类)
@ohos.app.form.formInfo (FormInfo)
@ohos.app.form.formProvider (FormProvider)
通用能力的接口(待停用)
@ohos.ability.dataUriUtils (DataUriUtils模块)
@ohos.ability.errorCode (ErrorCode)
@ohos.ability.wantConstant (wantConstant)
@ohos.application.abilityDelegatorRegistry (AbilityDelegatorRegistry)
@ohos.application.appManager (appManager)
@ohos.application.Configuration (Configuration)
@ohos.application.ConfigurationConstant (ConfigurationConstant)
@ohos.application.formBindingData (卡片数据绑定类)
@ohos.application.formError (FormError)
@ohos.application.formInfo (FormInfo)
@ohos.application.formProvider (FormProvider)
@ohos.application.Want (Want)
@ohos.wantAgent (WantAgent模块)
接口依赖的元素及定义
ability
AbilityResult
ConnectOptions
DataAbilityHelper
DataAbilityOperation
DataAbilityResult
StartAbilityParameter
Want
app
AppVersionInfo
Context
ProcessInfo
application
AbilityDelegator
AbilityDelegatorArgs
AbilityMonitor
AbilityStageContext
AbilityStateData
AbilityStageMonitor
ApplicationContext
BaseContext
Context
ErrorObserver
ExtensionContext
ProcessRunningInfo
ProcessInformation
UIAbilityContext
ShellCmdResult
wantAgent
TriggerInfo
WantAgentInfo
流转
@ohos.continuation.continuationManager (continuationManager)
continuation
ContinuationExtraParams
ContinuationResult
公共事件与通知
系统公共事件定义
@ohos.commonEventManager (公共事件模块)
@ohos.events.emitter (Emitter)
@ohos.notificationManager (NotificationManager模块)
@ohos.commonEvent (公共事件模块)
系统公共事件定义(待停用)
@ohos.notification (Notification模块)
application
EventHub
commonEvent
CommonEventData
CommonEventPublishData
CommonEventSubscriber
CommonEventSubscribeInfo
notification
NotificationActionButton
NotificationCommonDef
NotificationContent
NotificationFlags
NotificationRequest
NotificationSlot
NotificationTemplate
NotificationUserInput
包管理
@ohos.bundle.bundleManager (bundleManager模块)
@ohos.bundle.defaultAppManager (默认应用管理)
@ohos.zlib (Zip模块)
bundleManager
AbilityInfo
ApplicationInfo
BundleInfo
ElementName
ExtensionAbilityInfo
HapModuleInfo
Metadata
UI界面
@ohos.animator (动画)
@ohos.curves (插值计算)
@ohos.matrix4 (矩阵变换)
@ohos.mediaquery (媒体查询)
@ohos.promptAction (弹窗)
@ohos.router (页面路由)
@ohos.font (注册自定义字体)
@ohos.measure (文本计算)
图形图像
@ohos.display (屏幕属性)
@ohos.effectKit (图像效果)
@ohos.graphics.colorSpaceManager (色彩管理)
@ohos.window (窗口)
webgl
WebGL
WebGL2
媒体
@ohos.multimedia.audio (音频管理)
@ohos.multimedia.image (图片处理)
@ohos.multimedia.media (媒体服务)
资源管理
@ohos.i18n (国际化-I18n)
@ohos.intl (国际化-Intl)
@ohos.resourceManager (资源管理)
后台任务(Background Task)
@ohos.reminderAgentManager (后台代理提醒)
@ohos.resourceschedule.backgroundTaskManager (后台任务管理)
@ohos.resourceschedule.workScheduler (延迟任务调度)
@ohos.WorkSchedulerExtensionAbility (延迟任务调度回调)
安全
@ohos.abilityAccessCtrl (程序访问控制管理)
@ohos.security.cert (证书模块)
@ohos.security.cryptoFramework (加解密算法库框架)
@ohos.security.huks (通用密钥库系统)
@ohos.userIAM.userAuth (用户认证)
security
PermissionRequestResult
数据管理
@ohos.data.dataAbility (DataAbility谓词)
@ohos.data.distributedDataObject (分布式数据对象)
@ohos.data.distributedKVStore (分布式键值数据库)
@ohos.data.preferences (用户首选项)
@ohos.data.relationalStore (关系型数据库)
文件管理
@ohos.file.fileuri (文件URI)
@ohos.file.fs (文件管理)
@ohos.file.hash (文件哈希处理)
@ohos.file.picker (选择器)
@ohos.file.securityLabel (数据标签)
@ohos.file.statvfs (文件系统空间统计)
@ohos.file.storageStatistics (应用空间统计)
电话服务
@ohos.contact (联系人)
@ohos.telephony.call (拨打电话)
@ohos.telephony.data (蜂窝数据)
@ohos.telephony.observer (observer)
@ohos.telephony.radio (网络搜索)
@ohos.telephony.sim (SIM卡管理)
@ohos.telephony.sms (短信服务)
网络管理
@ohos.net.connection (网络连接管理)
@ohos.net.http (数据请求)
@ohos.net.socket (Socket连接)
@ohos.net.webSocket (WebSocket连接)
@ohos.request (上传下载)
通信与连接
@ohos.bluetoothManager (蓝牙)
@ohos.connectedTag (有源标签)
@ohos.nfc.cardEmulation (标准NFC-cardEmulation)
@ohos.nfc.controller (标准NFC)
@ohos.nfc.tag (标准NFC-Tag)
@ohos.rpc (RPC通信)
@ohos.wifiManager (WLAN)
@ohos.wifiManagerExt (WLAN扩展接口)
@ohos.wifi (WLAN)
@ohos.wifiext (WLAN扩展接口)
tag
nfctech (标准NFC-Tag Nfc 技术)
tagSession (标准NFC-Tag TagSession)
系统基础能力
@ohos.accessibility (辅助功能)
@ohos.accessibility.GesturePath (手势路径)
@ohos.accessibility.GesturePoint (手势触摸点)
@ohos.application.AccessibilityExtensionAbility (辅助功能扩展能力)
@ohos.faultLogger (故障日志获取)
@ohos.hichecker (检测模式)
@ohos.hidebug (Debug调试)
@ohos.hilog (HiLog日志打印)
@ohos.hiTraceChain (分布式跟踪)
@ohos.hiTraceMeter (性能打点)
@ohos.hiviewdfx.hiAppEvent (应用事件打点)
@ohos.inputMethod (输入法框架)
@ohos.inputMethodEngine (输入法服务)
@ohos.InputMethodExtensionAbility (InputMethodExtensionAbility)
@ohos.InputMethodExtensionContext (InputMethodExtensionContext)
@ohos.InputMethodSubtype (输入法子类型)
@ohos.pasteboard (剪贴板)
@ohos.screenLock (锁屏管理)
@ohos.systemDateTime (系统时间、时区)
@ohos.wallpaper (壁纸)
@ohos.web.webview (Webview)
Console (控制台)
Timer (定时器)
application
AccessibilityExtensionContext (辅助功能扩展上下文)
设备管理
@ohos.batteryInfo (电量信息)
@ohos.deviceInfo (设备信息)
@ohos.geoLocationManager (位置服务)
@ohos.multimodalInput.inputDevice (输入设备)
@ohos.multimodalInput.inputEvent (输入事件)
@ohos.multimodalInput.keyCode (键值)
@ohos.multimodalInput.keyEvent (按键输入事件)
@ohos.multimodalInput.mouseEvent (鼠标输入事件)
@ohos.multimodalInput.pointer (鼠标指针)
@ohos.multimodalInput.touchEvent (触摸输入事件)
@ohos.power (系统电源管理)
@ohos.runningLock (Runninglock锁)
@ohos.sensor (传感器)
@ohos.settings (设置数据项名称)
@ohos.stationary (设备状态感知框架)
@ohos.thermal (热管理)
@ohos.usbManager (USB管理)
@ohos.vibrator (振动)
帐号管理
@ohos.account.appAccount (应用帐号管理)
@ohos.account.distributedAccount (分布式帐号管理)
@ohos.account.osAccount (系统帐号管理)
语言基础类库
@ohos.buffer (Buffer)
@ohos.convertxml (xml转换JavaScript)
@ohos.process (获取进程相关的信息)
@ohos.taskpool(使用任务池)
@ohos.uri (URI字符串解析)
@ohos.url (URL字符串解析)
@ohos.util (util工具函数)
@ohos.util.ArrayList (线性容器ArrayList)
@ohos.util.Deque (线性容器Deque)
@ohos.util.HashMap (非线性容器HashMap)
@ohos.util.HashSet (非线性容器HashSet)
@ohos.util.LightWeightMap (非线性容器LightWeightMap)
@ohos.util.LightWeightSet (非线性容器LightWeightSet)
@ohos.util.LinkedList (线性容器LinkedList)
@ohos.util.List (线性容器List)
@ohos.util.PlainArray (非线性容器PlainArray)
@ohos.util.Queue (线性容器Queue)
@ohos.util.Stack (线性容器Stack)
@ohos.util.TreeMap (非线性容器TreeMap)
@ohos.util.TreeSet (非线性容器TreeSet)
@ohos.util.Vector (线性容器Vector)
@ohos.worker (启动一个Worker)
@ohos.xml (xml解析与生成)
测试
@ohos.application.testRunner (TestRunner)
@ohos.UiTest
已停止维护的接口
@ohos.backgroundTaskManager (后台任务管理)
@ohos.bluetooth (蓝牙)
@ohos.bundle (Bundle模块)
@ohos.bundleState (设备使用信息统计)
@ohos.bytrace (性能打点)
@ohos.data.distributedData (分布式数据管理)
@ohos.data.storage (轻量级存储)
@ohos.data.rdb (关系型数据库)
@ohos.document (文件交互)
@ohos.fileio (文件管理)
@ohos.geolocation(位置服务)
@ohos.hiAppEvent (应用打点)
@ohos.multimedia.medialibrary (媒体库管理)
@ohos.prompt (弹窗)
@ohos.reminderAgent (后台代理提醒)
@ohos.statfs (statfs)
@ohos.systemTime (系统时间、时区)
@ohos.usb (USB管理)
@system.app (应用上下文)
@system.battery (电量信息)
@system.bluetooth (蓝牙)
@system.brightness (屏幕亮度)
@system.cipher (加密算法)
@system.configuration (应用配置)
@system.device (设备信息)
@system.fetch (数据请求)
@system.file (文件存储)
@system.geolocation (地理位置)
@system.mediaquery (媒体查询)
@system.network (网络状态)
@system.notification (通知消息)
@system.package (应用管理)
@system.prompt (弹窗)
@system.request (上传下载)
@system.router (页面路由)
@system.sensor (传感器)
@system.storage (数据存储)
@system.vibrator (振动)
bundle
abilityInfo
ApplicationInfo
BundleInfo
CustomizeData
ElementName
HapModuleInfo
ModuleInfo
ShortcutInfo
data/rdb
resultSet (结果集)
组件参考(基于ArkTS的声明式开发范式)
组件导读
组件通用信息
通用事件
点击事件
触摸事件
挂载卸载事件
拖拽事件
按键事件
焦点事件
鼠标事件
组件区域变化事件
组件可见区域变化事件
通用属性
尺寸设置
位置设置
布局约束
Flex布局
边框设置
图片边框设置
背景设置
透明度设置
显隐控制
禁用控制
浮层
Z序控制
图形变换
图像效果
形状裁剪
文本样式设置
栅格设置
颜色渐变
Popup控制
菜单控制
焦点控制
悬浮态效果
组件标识
触摸热区设置
多态样式
触摸测试控制
分布式迁移标识
点击控制
手势处理
绑定手势方法
基础手势
TapGesture
LongPressGesture
PanGesture
PinchGesture
RotationGesture
SwipeGesture
组合手势
基础组件
AlphabetIndexer
Blank
Button
Checkbox
CheckboxGroup
DataPanel
DatePicker
Divider
Gauge
Image
ImageAnimator
LoadingProgress
Marquee
Menu
MenuItem
MenuItemGroup
Navigation
NavRouter
NavDestination
PatternLock
Progress
QRCode
Radio
Rating
RichText
ScrollBar
Search
Select
Slider
Span
Stepper
StepperItem
Text
TextArea
TextClock
TextInput
TextPicker
TextTimer
TimePicker
Toggle
Web
XComponent
容器组件
Badge
Column
ColumnSplit
Counter
Flex
FlowItem
GridCol
GridRow
Grid
GridItem
List
ListItem
ListItemGroup
Navigator
Panel
Refresh
RelativeContainer
Row
RowSplit
Scroll
SideBarContainer
Stack
Swiper
Tabs
TabContent
WaterFlow
媒体组件
Video
绘制组件
Circle
Ellipse
Line
Polyline
Polygon
Path
Rect
Shape
画布组件
Canvas
CanvasRenderingContext2D对象
CanvasGradient对象
ImageBitmap对象
ImageData对象
OffscreenCanvasRenderingContext2D对象
Path2D对象
Lottie
动画
属性动画
显式动画
转场动画
页面间转场
组件内转场
共享元素转场
路径动画
全局UI方法
弹窗
警告弹窗
列表选择弹窗
自定义弹窗
日期滑动选择器弹窗
时间滑动选择器弹窗
文本滑动选择器弹窗
菜单
自定义组件的生命周期
应用级变量的状态管理
像素单位
枚举说明
类型定义
已停止维护的组件
GridContainer
组件参考(兼容JS的类Web开发范式-ArkUI.Full)
组件通用信息
通用属性
通用样式
通用事件
通用方法
动画样式
渐变样式
转场样式
媒体查询
自定义字体样式
原子布局
容器组件
badge
dialog
div
form
list
list-item
list-item-group
panel
popup
refresh
stack
stepper
stepper-item
swiper
tabs
tab-bar
tab-content
基础组件
button
chart
divider
image
image-animator
input
label
marquee
menu
option
picker
picker-view
piece
progress
qrcode
rating
richtext
search
select
slider
span
switch
text
textarea
toolbar
toolbar-item
toggle
web
xcomponent
媒体组件
video
画布组件
canvas组件
CanvasRenderingContext2D对象
Image对象
CanvasGradient对象
ImageData对象
Path2D对象
ImageBitmap对象
OffscreenCanvas对象
OffscreenCanvasRenderingContext2D对象
栅格组件
基本概念
grid-container
grid-row
grid-col
svg组件
通用属性
svg
rect
circle
ellipse
path
line
polyline
polygon
text
tspan
textPath
animate
animateMotion
animateTransform
自定义组件
自定义组件的基本用法
数据传递与处理
继承样式
slot插槽
生命周期定义
动态创建组件
数据类型说明
组件参考(兼容JS的类Web开发范式-ArkUI.Lite)
框架说明
文件组织
js标签配置
app.js
语法
HML语法参考
CSS语法参考
JS语法参考
生命周期
组件通用信息
通用事件
通用属性
通用样式
动画样式
容器组件
div
list
list-item
stack
swiper
基础组件
chart
image
image-animator
input
marquee
picker-view
progress
qrcode
slider
switch
text
画布组件
canvas组件
CanvasRenderingContext2D对象
JS服务卡片UI组件参考
JS服务卡片UI框架说明
文件组
语法
HML语法参考
CSS语法参考
多语言支持
版本兼容适配
设置主题样式
组件
通用
通用属性
通用样式
通用事件
渐变样式
媒体查询
自定义字体样式
无障碍
原子布局
容器组件
badge
div
list
list-item
stack
swiper
基础组件
button
calendar
chart
clock
divider
image
input
progress
span
text
自定义组件使用说明
数据类型说明
错误码参考
通用错误码
Ability框架
元能力子系统错误码
DistributedSchedule错误码
卡片错误码
包管理
包管理子系统通用错误码
zlib子系统错误码
公共事件与通知
事件错误码
通知错误码
DistributedNotificationService错误码
UI界面
动画错误码
弹窗错误码
页面路由错误码
图形图像
色彩管理错误码
屏幕错误码
窗口错误码
媒体
Audio错误码
Media错误码
资源管理
I18n错误码
资源管理错误码
后台任务
backgroundTaskManager错误码
reminderAgentManager错误码
workScheduler错误码
安全
AccessToken错误码
HUKS错误码
crypto framework错误码
cert错误码
用户认证错误码
数据管理
关系型数据库错误码
分布式数据对象错误码
分布式键值数据库错误码
用户首选项错误码
文件管理
文件管理错误码
电话服务
电话子系统错误码
网络管理
上传下载错误码
HTTP错误码
Socket 错误码
网络连接管理错误码
通信与连接
NFC错误码
RPC错误码
蓝牙服务子系统错误码
系统基础能力
无障碍子系统错误码
Faultlogger 错误码
应用事件打点错误码
系统事件错误码
Hidebug错误码
输入法框架错误码
剪贴板错误码
时间时区服务错误码
Webview错误码
帐号管理
帐号管理错误码
设备管理
耗电统计错误码
屏幕亮度错误码
系统电源管理错误码
RunningLock锁错误码
热管理错误码
设备管理错误码
位置服务子系统错误码
传感器错误码
振动错误码
USB服务错误码
语言基础类库
语言基础类库错误码
测试
uitest错误码
Native API参考
Archived
模块
Native XComponent
HiLog
NativeWindow
OH_NativeBuffer
Drawing
OH_NativeImage
NativeVsync
Image
Rawfile
MindSpore
NeuralNetworkRuntime
AudioDecoder
AudioEncoder
CodecBase
VideoDecoder
VideoEncoder
Core
HuksKeyApi
HuksParamSetApi
HuksTypeApi
头文件
drawing_bitmap.h
drawing_brush.h
drawing_canvas.h
drawing_color.h
drawing_font_collection.h
drawing_path.h
drawing_pen.h
drawing_text_declaration.h
drawing_text_typography.h
drawing_types.h
external_window.h
image_pixel_map_napi.h
log.h
native_buffer.h
native_image.h
native_interface_xcomponent.h
native_vsync.h
raw_dir.h
raw_file_manager.h
raw_file.h
context.h
data_type.h
format.h
model.h
status.h
tensor.h
types.h
neural_network_runtime_type.h
neural_network_runtime.h
native_avcodec_audiodecoder.h
native_avcodec_audioencoder.h
native_avcodec_base.h
native_avcodec_videodecoder.h
native_avcodec_videoencoder.h
native_averrors.h
native_avformat.h
native_avmemory.h
native_huks_api.h
native_huks_param.h
native_huks_type.h
结构体
OH_Drawing_BitmapFormat
OH_NativeBuffer_Config
OH_NativeXComponent_Callback
OH_NativeXComponent_MouseEvent
OH_NativeXComponent_MouseEvent_Callback
OH_NativeXComponent_TouchEvent
OH_NativeXComponent_TouchPoint
OHExtDataHandle
OHHDRMetaData
OhosPixelMapInfo
RawFileDescriptor
Region
Rect
OH_AI_CallBackParam
OH_AI_ShapeInfo
OH_AI_TensorHandleArray
OH_NN_Memory
OH_NN_QuantParam
OH_NN_Tensor
OH_NN_UInt32Array
OH_AVCodecAsyncCallback
OH_AVCodecBufferAttr
OH_Huks_Blob
OH_Huks_CertChain
OH_Huks_KeyInfo
OH_Huks_KeyMaterial25519
OH_Huks_KeyMaterialDh
OH_Huks_KeyMaterialDsa
OH_Huks_KeyMaterialEcc
OH_Huks_KeyMaterialRsa
OH_Huks_Param
OH_Huks_ParamSet
OH_Huks_PubKeyInfo
OH_Huks_Result
标准库
Node-API
libuv
Native API中支持的标准库
附录
Native api中没有导出的符号列表
Native api中导出的EGL符号列表
Native api中导出的OpenGL ES 3.2符号列表
Native api中支持的OpenSL ES接口列表
帐号管理
帐号管理错误码
意见反馈
以上内容对您是否有帮助?
意见反馈
如果您有其他疑问,您也可以通过开发者社区问答频道来和我们联系探讨。
社区提问
智能客服提问
搜索
只在 中搜索
只搜索章节标题
请输入您想要搜索的关键词
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功