摘要: 蜂窝数据和wifi通道切换 import { BusinessError } from '@kit.BasicServicesKit'; import { connection } from '@kit.NetworkKit'; import { data } from '@kit.Telephon 阅读全文
posted @ 2026-06-16 20:02 带头大哥d小弟 阅读(7) 评论(0) 推荐(0)
摘要: 生成二维码 import { Constants, ToolBarTheme, TopToolBar } from "@common/basic" import { BarcodeFormat, BitMatrix, EncodeHintType, MultiFormatWriter } from 阅读全文
posted @ 2026-05-28 17:55 带头大哥d小弟 阅读(12) 评论(0) 推荐(0)
摘要: 方法一:需下载到本地(不推荐) import { GetFirstFrameAnimation } from './GetFirstFrameAnimation'; import { media } from '@kit.MediaKit'; import { image } from '@kit. 阅读全文
posted @ 2026-05-20 15:54 带头大哥d小弟 阅读(4) 评论(0) 推荐(0)
摘要: 状态栏设置下载进度条通知 /** * @Description: 下载进度条状态栏通知class */ import { notificationManager } from '@kit.NotificationKit'; import { BusinessError } from '@kit.Ba 阅读全文
posted @ 2026-04-24 11:18 带头大哥d小弟 阅读(8) 评论(0) 推荐(0)
摘要: import { AppUtil, ToastUtil } from '@pura/harmony-utils'; import { DownloadManager, UploadManager, DownloadConfig, DownloadListener, DownloadTask, Dow 阅读全文
posted @ 2026-03-19 11:24 带头大哥d小弟 阅读(11) 评论(0) 推荐(0)
摘要: import { Log } from '@abner/log'; import wifiManager from '@ohos.wifiManager'; import { StringUtils } from '../StringUtils'; class wifiManagerUtil { i 阅读全文
posted @ 2026-01-16 16:54 带头大哥d小弟 阅读(17) 评论(0) 推荐(0)
摘要: emitter工具函数class /** * @Author: * @Date: 2025.11.19 * @Description: emitter环境与函数 */ import { emitter } from '@kit.BasicServicesKit'; export class Emit 阅读全文
posted @ 2026-01-16 10:38 带头大哥d小弟 阅读(6) 评论(0) 推荐(0)
摘要: tcp消息发送,模拟队列版本 /** * @Author: * @Date: 2026.01.15 * @Description: TCP Socket send队列封装管理class */ import { BusinessError } from '@kit.BasicServicesKit'; 阅读全文
posted @ 2026-01-15 16:46 带头大哥d小弟 阅读(13) 评论(0) 推荐(0)
摘要: 自定义下载函数 ImageKnife.getInstance().initFileCache(this.getUIContext().getHostContext(), 256, 256 * 1024 * 1024); //ui.... ImageKnifeComponent({ syncLoad: 阅读全文
posted @ 2026-01-13 21:33 带头大哥d小弟 阅读(22) 评论(0) 推荐(0)
摘要: 将普通不可观察数据变为可观察数据 、、、 UIUtils.makeObserved('对象、接口对象') 、、、 使V1的状态变量能够在@ComponentV2中观察 、、、 mport { UIUtils } from '@kit.ArkUI'; @Observed class ObservedC 阅读全文
posted @ 2025-12-02 09:22 带头大哥d小弟 阅读(10) 评论(0) 推荐(0)