lethttpRequesthttp.createHttp();console.info('param:'+JSON.stringify(param));httpRequest.request(this.globalData.host+param.url,'https:www.grosup.combannergetall0',{method:param.methodparam.method:'GET',可选,默认为“GET”header:Object.assign({},param.headerparam.header:{'ContentType':'applicationxwwwformurlencoded'},{thirdsession:this.globalData.thirdsession},),当使用POST请求时此字段用于传递内...
鸿蒙http数据PageAbility里的不同AbilitySlice可以调用startAbility(),presentForResult()来实现子页面AbilitySlice的调用,请问这两个方法有什么区别?
鸿蒙HarmonyOS导航用service启动的卡片服务,然后卡片的信息刷新过了一段时间就停止了,有什么办法能保活能持久的呢?我看系统的时钟卡片是可以一直运行的
鸿蒙卡片激活HarmonyOScategoryOrientationAgentnewCategoryOrientationAgent();CategoryOrientationcategoryOrientationcategoryOrientationAgent.getSingleSensor(CategoryOrientation.SENSORTYPEDEVICEORIENTATION);categoryOrientationDataCallbacknewICategoryOrientationDataCallback(){OverridepublicvoidonSensorDataModified(CategoryOrientationDatacategoryOrientationData){degreecategoryOrientationData.getValues()[0];handler.sendEv...
鸿蒙传感器HarmonyOS查了文档发现onOrientationChanged可以获取横竖屏切换的回调,但是实际发现当屏幕切换时根本不会走这个回调。有版主回复说是因为这个触发的前提是abiility处于foreground,但是setDisplayOrientation会使ability处于Background,所以不会触发。那么如何才能获取到横竖屏的切换呢?或者有其他方案能在切换横竖屏时自动判断加载不同布局文件?
鸿蒙HarmonyOSOpenHarmony背景模糊也不是所以设备支持,不知道简单的透明能否做到
鸿蒙卡片HarmonyOS