DevEco Studio:支持使用预览器的API清单
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
➤博客园地址:为敢技术(https://www.cnblogs.com/strengthen/ )
➤GitHub地址:https://github.com/strengthen
➤原文地址:https://www.cnblogs.com/strengthen/p/18469645
➤如果链接不是为敢技术的博客园地址,则可能是爬取作者的文章。
➤原文已修改更新!强烈建议点击原文地址阅读!支持作者!支持原创!
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
一、组件
1、ArkTS组件
(1)、基础组件API
1 AlphabetIndexer 2 Blank 3 Button 4 Checkbox 5 CheckboxGroup 6 DataPanel 7 DatePicker 8 Divider 9 Gauge 10 Image 11 ImageAnimator 12 ImageSpan 13 LoadingProgress 14 Marquee 15 Menu 16 MenuItem 17 MenuItemGroup 18 Navigation 19 NavRouter 20 NavDestination 21 PatternLock 22 Progress 23 QRCode 24 Radio 25 Rating 26 ScrollBar 27 Search 28 Select 29 Slider 30 Span 31 Stepper 32 StepperItem 33 Text 34 TextArea 35 TextClock 36 TextInput 37 TextPicker 38 TextTimer 39 Toggle
(2)、容器组件API
1 Badge 2 Column 3 ColumnSplit 4 Counter 5 Flex 6 FlowItem 7 GridCol 8 GridRow 9 List 10 ListItem 11 ListItemGroup 12 Navigator 13 Panel 14 Refresh 15 RelativeContainer 16 Row 17 RowSplit 18 Scroll 19 SideBarContainer 20 Stack 21 Swiper 22 Tabs 23 TabContent 24 WaterFlow
(3)、绘制组件API
1 Circle 2 Ellipse 3 Line 4 Polyline 5 Path 6 Rect 7 Shape
(4)、画布组件API
1 Canvas 2 CanvasGradient 3 CanvasPattern 4 CanvasRenderingContext2D 5 ImageBitmap 6 ImageData 7 Matrix2D 8 OffscreenCanvasRenderingContext2D 9 Path2D
二、JS组件
(1)、基础组件API
1 button 2 chart 3 divider 4 image 5 image-animator 6 input 7 label 8 marquee 9 menu 10 option 11 picker 12 picker-view 13 piece 14 progress 15 qrcode 16 rating 17 search 18 select 19 slider 20 span 21 switch 22 text 23 textarea 24 toolbar 25 toolbar-item 26 toggle
(2)、容器组件API
1 badge 2 dialog 3 div 4 form 5 list 6 list-item 7 list-item-group 8 panel 9 popup 10 refresh 11 stack 12 stepper 13 stepper-item 14 swiper 15 tabs 16 tab-bar 17 tab-content
(3)、画布组件API
1 canvas 2 CanvasRenderingContext2D 3 Image 4 CanvasGradient 5 ImageData 6 Path2D 7 ImageBitmap 8 OffscreenCanvas 9 OffscreenCanvasRenderingContext2D
(4)、栅格组件API
1 grid-container 2 grid-row 3 grid-col
(5)、svg组件API
1 svg 2 rect 3 circle 4 ellipse 5 path 6 line 7 polyline 8 polygon 9 text 10 tspan 11 textPath 12 animate 13 animateMotion 14 animateTransform
三、接口
1、UI界面
(1)、@ohos.animator (动画)
1 Animator 2 AnimatorResult 3 AnimatorOptions
(2)、@ohos.mediaquery (媒体查询)
1 matchMediaSync 2 MediaQueryResult 3 MediaQueryListener
(3)、@ohos.promptAction (弹窗)
1 showToast 2 showDialog 3 showActionMenu 4 ShowToastOptions 5 Button 6 ShowDialogSuccessResponse 7 ShowDialogOptions 8 ActionMenuSuccessResponse 9 ActionMenuOptions
(4)、@ohos.router (页面路由)
pushUrl
replaceUrl
back
clear
getLength
getState
enableAlertBeforeBackPage
disableAlertBeforeBackPage
getParams
RouterMode
RouterOptions
RouterState
EnableAlertOptions
2、网络管理
(1)、@ohos.net.http (数据请求)
1 http.createHttp 2 如果Http请求需要配置代理才能访问,API 12及以上的预览器支持使用系统的http_proxy/https_proxy/no_proxy环境变量。
3、数据管理
(1)、@ohos.data.preferences (用户首选项)
1 data_preferences.getPreferences 2 data_preferences.deletePreferences 3 data_preferences.removePreferencesFromCache 4 Preferences 5 ValueType
4、文件管理
(1)、@ohos.file.fs (文件管理)
1 fs.open 2 fs.close 3 fs.fdatasync 4 fs.fsync 5 fs.read 6 fs.write 7 fs.mkdir 8 fs.mkdtemp 9 fs.rename 10 fs.rmdir 11 fs.unlink 12 fs.stat 13 fs.truncate