request.downloadConfig()函数报错怎么回事?
根据提示内容是说downconfig类型有错误的类型。典型设置如下:downloadConfig{下载参数url:fileUrl,header:{},enableMetered:true,enableRoaming:true,filePath:'datastorageel2basehapsentryfiles'+downloadFileName,networkType:request.NETWORKWIFI}
HarmonyOS应用安全测试验证规范 文档有正式版吗?
可以看下文档!https:developer.harmonyos.comcndocsdocumentationdocguidesV3appsecuritytesting0000001136113822V3catalogVersionV3
鸿蒙系统3无法获取系统定位信息怎么回事?
位置定位具体使用可参考以下链接:https:gitee.comopenharmonyapplicationsappsamplestreemasterdeviceLocation
PA开发,如何添加日历提醒?
日历提醒可以参考文档:https:developer.harmonyos.comcndocsdocumentationdocguidesabilitynotificationfwkscheduledreminders0000001123755782。
请问自定义ScrollView怎么获得滑动距离和总宽度?
scrollView.getComponentTreeObserver().addScrolledListener(.....)这样可以实现监听,回调里面获取滑动距离,floatcurYscrollView.getScrollValue(Component.AXISY);
怎么改通知上的图标有知道的吗?
建议参考通知开发指导:https:developer.harmonyos.comcndocsdocumentationdocguidesabilitynotificationfwknotification0000000000038804
请问HUAWEI WATCH GT2 目前支持到哪个API version呢?
目前支持到API3.可以参考官网的API,查看哪些能力需要什么版本的API支持https:developer.harmonyos.comcndocsdocumentationdocreferenceslitewearablesyntaxhml0000001222151177section368561455815
鸿蒙开发如何播放本地视频?
你使用的方式是无法进行本地视频播放的:1.getRawFileEntry用于获取应用中目录下("entrysrcmainresources")的资源文件2.你的应用程序需要有对datauser0com.nd.jg.browsercache目录的读写权限,而默认是没有的3.cache里的内容是会随应用安装调试而变化,不建议放在此目录下所以我的建议是:1.将视频应用放置在应用资源目录下,采取getRawFileEntry方式获取并播放2.将视频放置应用有读写权限的目录下(不建议放在cache目录下),...
如何监听AbilitySlice的生命周期
AbilitySlice提供了生命周期内的相关回调函数,可参考:https:developer.harmonyos.comcndocsdocumentationdocguidesabilitypagelifecycle0000000000029840