Device App API Revision History On this page
July 6, 2022 SCROLL_LIST widgetAdd widget picture display Rewrite code example CYCLE_LIST widgetAdd widget picture display Rewrite code example PICK_DATE widgetAdd widget picture display Rewrite code example HISTOGRAM widgetAdd widget picture display Rewrite code example FILL_RECT widgetJuly 1, 2022 IMG widgetAdd widget picture display Add src field description Rewrite code example TEXT widgetAdd widget picture display Rewrite code example ARC widgetAdd widget picture display Optimize field descriptions Rewrite code example FILL_RECT widgetAdd widget picture display Delete the useless field line_width Rewrite code example STROKE_RECT widgetAdd widget picture display Rewrite code example Fix the field line_width mandatory error TEXT_IMGARC_PROGRESSBUTTONAdd widget picture display Optimize field descriptions Add Notes for Use Rewrite code example IMG_LEVELIMG_AMINAdd widget picture display Delete the useless field anim_repeat Optimization field anim_status description Rewrite code example CIRCLEAdd widget picture display Rewrite code example RADIO_GROUPAdd widget picture display Optimize field descriptions Add Notes for Use Rewrite code example CHECKBOX_GROUPAdd widget picture display Optimize field descriptions Add Notes for Use Rewrite code example SLIDE_SWITCHAdd widget picture display Optimize field descriptions Rewrite code example DIALOGAdd widget picture display Add Notes for Use Rewrite code example hmFS.stat_assetFix field description error hmFS.open_assetFix field description error June 23, 2022 CYCLE_IMAGE_TEXT_LIST widgetJune 21, 2022 RADIO_GROUP widgetCHECKBOX_GROUP widgetJune 17, 2022 IMG widgetAdd a note that the IMG widget does not support scaling June 14, 2022 June 9, 2022 widget.getPropertyAdd property get description hmApp.registerGestureEvent(callback)Add description of the default behavior hmApp.goBack()June 1, 2022 hm.statFix stat parameter type error hm.stat_assetFix stat parameter type error May 31, 2022 hmSetting.setBrightScreenAdd a description of the screen being always lit hmApp.setScreenKeepCALORIEAdd property descriptions FAT_BURRINGAdd property descriptions VIBRATEAdd sensor start, stop method descriptions and code examples HEARTMay 27, 2022 May 24, 2022 May 17, 2022 April 28, 2022 hmApp.setLayerYhmApp.getLayerYApril 12, 2022 hmApp.startAppFix param parameter type, add field description hmApp.gotoPageFix param parameter type, add field description hmApp.reloadPageFix param parameter type, add field description Add life cycle function signatures April 11, 2022 Fix permissions, cover, platforms field types in Mini Program Configuration March 31, 2022 hmSetting.getDeviceInfoFix the type of the return value keyNumber Add screenShape field description March 29, 2022 hmApp.packageInfoAdd the return value information hmApp.registSpinEventThe method name is changed to hmApp.registerSpinEvent, the original method name can still be used hmApp.registGestureEventThe method name is changed to hmApp.registerGestureEvent, the original method name can still be used hmApp.registKeyEventThe method name is changed to hmApp.registerKeyEvent, the original method name can still be used March 22, 2022 IMG_ANIM widgetFix anim_prefix, anim_ext property types Improve the file system storage path for code example hmUI.getPropertyRemove error code example March 18,2022 Add hmUI.getTextLayout() to calculate the height and width of the target text after the layout is completed, and does not actually render it, only performs the layout calculation. hmSetting.getUserDataTEXT widgetModify the text_size property description Remove font property, font setting is not supported at this time February 24, 2022 Add PICK_DATE widget TIME widgetadd traditional Chinese festival and Solar Terms FILL_RECT widgetIMG widgetExample of additional image rotation and position-related images stopTimerFixing bugs in code examples WEATHER sensorRewrite this module documentation Add sunrise and sunset data hmFS.readdirFix the type of return value Add code example hmFS.statRefine the description of the mtime property hmFS.stat_assetRefine the description of the mtime property hmApp.exithmApp.gotoHomeJanuary 17, 2022 hmUI.createDialogFix the show parameter type to boolean widget.setPropertyAdd code example for setting multiple properties at the same time widget.getPropertyAdd code example for getting multiple properties at the same time December 28, 2021 hmSetting.getDeviceInfoReturn value added deviceSource field hmFS.writeFix the wrong order of document parameter passing hmFS.readFix the wrong order of document parameter passing hmSetting.getMileageUnitFix document method name labeling error FAT_BURRING sensorFix error in code example BATTERY sensorFix error in code example PAI sensorFix document property description error hmSetting.getUserData()Fix the age property type to number hmSetting.getWeightTarget()SelectSupplementary options type July 6, 2022 July 1, 2022 June 23, 2022 June 21, 2022 June 17, 2022 June 14, 2022 June 9, 2022 June 1, 2022 May 31, 2022 May 27, 2022 May 24, 2022 May 17, 2022 April 28, 2022 April 12, 2022 April 11, 2022 March 31, 2022 March 29, 2022 March 22, 2022 March 18,2022 February 24, 2022 January 17, 2022 December 28, 2021