Component | API |
|---|---|
Basic components | AlphabetIndexer |
Blank | |
Button | |
Checkbox | |
CheckboxGroup | |
DataPanel | |
DatePicker | |
Divider | |
Gauge | |
Image | |
ImageAnimator | |
ImageSpan | |
LoadingProgress | |
Marquee | |
Menu | |
MenuItem | |
MenuItemGroup | |
Navigation | |
NavRouter | |
NavDestination | |
PatternLock | |
Progress | |
QRCode | |
Radio | |
Rating | |
ScrollBar | |
Search | |
Select | |
Slider | |
Span | |
Stepper | |
StepperItem | |
Text | |
TextArea | |
TextClock | |
TextInput | |
TextPicker | |
TextTimer | |
Toggle | |
Container components | Badge |
Column | |
ColumnSplit | |
Counter | |
Flex | |
FlowItem | |
GridCol | |
GridRow | |
List | |
ListItem | |
ListItemGroup | |
Navigator | |
Panel | |
Refresh | |
RelativeContainer | |
Row | |
RowSplit | |
Scroll | |
SideBarContainer | |
Stack | |
Swiper | |
Tabs | |
TabContent | |
WaterFlow | |
Drawing components | Circle |
Ellipse | |
Line | |
Polyline | |
Path | |
Rect | |
Shape | |
Canvas components | Canvas |
CanvasGradient | |
CanvasPattern | |
CanvasRenderingContext2D | |
ImageBitmap | |
ImageData | |
Matrix2D | |
OffscreenCanvasRenderingContext2D | |
Path2D |
Component | API |
|---|---|
Basic components | button |
chart | |
divider | |
image | |
image-animator | |
input | |
label | |
marquee | |
menu | |
option | |
picker | |
picker-view | |
piece | |
progress | |
qrcode | |
rating | |
search | |
select | |
slider | |
span | |
switch | |
text | |
textarea | |
toolbar | |
toolbar-item | |
toggle | |
Container components | badge |
dialog | |
div | |
form | |
list | |
list-item | |
list-item-group | |
panel | |
popup | |
refresh | |
stack | |
stepper | |
stepper-item | |
swiper | |
tabs | |
tab-bar | |
tab-content | |
Canvas components | canvas |
CanvasRenderingContext2D | |
Image | |
CanvasGradient | |
ImageData | |
Path2D | |
ImageBitmap | |
OffscreenCanvas | |
OffscreenCanvasRenderingContext2D | |
Grid components | grid-container |
grid-row | |
grid-col | |
SVG components | svg |
rect | |
circle | |
ellipse | |
path | |
line | |
polyline | |
polygon | |
text | |
tspan | |
textPath | |
animate | |
animateMotion | |
animateTransform |
Module | API |
|---|---|
@ohos.animator (Animation) | Animator |
AnimatorResult | |
AnimatorOptions | |
@ohos.mediaquery (Media Query) | matchMediaSync |
MediaQueryResult | |
MediaQueryListener | |
@ohos.promptAction (Dialog Box) | showToast |
showDialog | |
showActionMenu | |
ShowToastOptions | |
Button | |
ShowDialogSuccessResponse | |
ShowDialogOptions | |
ActionMenuSuccessResponse | |
ActionMenuOptions | |
@ohos.router (Page Routing) | pushUrl |
replaceUrl | |
back | |
clear | |
getLength | |
getState | |
enableAlertBeforeBackPage | |
disableAlertBeforeBackPage | |
getParams | |
RouterMode | |
RouterOptions | |
RouterState | |
EnableAlertOptions |
Module | API |
|---|---|
@ohos.net.http (Data Request) | http.createHttp If HTTP requests require proxy configuration to access, the Previewer in API version 12 or later supports the use of the system's http_proxy, https_proxy, and no_proxy environment variables. |
Module | API |
|---|---|
@ohos.data.preferences (User Preferences) | data_preferences.getPreferences |
data_preferences.deletePreferences | |
data_preferences.removePreferencesFromCache | |
Preferences | |
ValueType |
Since DevEco Studio 6.0.0 Beta5, the file management APIs are available only during the preview or debug preview of HAPs/HSPs in the stage model. The Enable file operation option must be enabled first.

Module | API |
|---|---|
@ohos.file.fs (File Management) | fs.open |
fs.close | |
fs.fdatasync | |
fs.fsync | |
fs.read | |
fs.write | |
fs.mkdir | |
fs.mkdtemp | |
fs.rename | |
fs.rmdir | |
fs.unlink | |
fs.stat | |
fs.truncate |