当前位置: 首页 > news >正文

wordpress菜单显示在哪里设置重庆seo网络优化咨询热线

wordpress菜单显示在哪里设置,重庆seo网络优化咨询热线,wordpress插入小视频,企业邮箱如何查询在移植 AWTK 到 HarmonyOS NEXT 系统之前,我们需要先完成平台适配,比如文件、多线程(线程和同步)、时间、动态库和资源管理。 1. 文件 HarmonyOS NEXT 支持标准的 POSIX 文件操作接口,我们可以直接使用下面的代码&am…

在移植 AWTK 到 HarmonyOS NEXT 系统之前,我们需要先完成平台适配,比如文件、多线程(线程和同步)、时间、动态库和资源管理。

1. 文件

HarmonyOS NEXT 支持标准的 POSIX 文件操作接口,我们可以直接使用下面的代码:

src/platforms/pc/fs_os.c

2. 多线程

HarmonyOS NEXT 支持标准的 POSIX 线程操作接口,我们可以直接使用下面的代码:

src/platforms/pc/thread_with_pthread.c

3. 时间

HarmonyOS NEXT 支持标准的时间函数,我们可以直接使用下面的代码:

src/platforms/pc/platform_time.c

4. 动态库

HarmonyOS NEXT 支持标准的动态库操作接口,我们可以直接使用下面的代码:

src/platforms/pc/dl.c

5. 系统信息

AWTK 需要一些系统信息,比如 屏幕大小、屏幕密度、可写文件目录、临时目录、当前语言、字体缩放比例等。我们可以使用下面的代码从 UIAbilityContext 获取,然后传入到 native 层:

    let context = getContext(this) as common.UIAbilityContext;let filesDir: string = context.filesDir;let tempDir: string = context.tempDir;let resourceManager = context.resourceManager;let resourceDir = context.resourceDir;let screenDensity: number = context.config.screenDensity || 640;let fontScale:number = context.config.fontSizeScale || 1;let language:string = context.config.language || "zh_CN";awtk_napi.init(resourceManager, filesDir, tempDir, screenDensity, fontScale, language);

6. 资源管理

资源管理比较麻烦一点,我们参考 AWTK-IOS 将资源打包成一个文件 assets.zip,放到应用程序的包里。在 HarmonyOS NEXT 系统中,我们可以把 assets.zip 放到 rawfile 目录下:

entry/src/main/resources/rawfile/assets.zip

然后通过资源管理器读取:

    filename = "assets.zip";RawFile *rawFile = OH_ResourceManager_OpenRawFile(mNativeResMgr, filename.c_str());if (rawFile != nullptr) {}   long len = OH_ResourceManager_GetRawFileSize(rawFile);assetsData = std::make_unique<uint8_t[]>(len);int res = OH_ResourceManager_ReadRawFile(rawFile, assetsData.get(), len);OH_ResourceManager_CloseRawFile(rawFile);OH_ResourceManager_ReleaseNativeResourceManager(mNativeResMgr);assetsZipContent = assetsData.get();assetsZipSize = len;awtk_app_->Init(filesDir.c_str(), tempDir.c_str(), screenDensity, fontScale, language.c_str(), assetsZipContent, assetsZipSize);

7. 编译运行

AWTK 原生窗口和输入事件处理,此时已经实现,不过我们下一篇文章再介绍,先放一张图上来看看:

在这里插入图片描述


文章转载自:
http://dinncodaywork.wbqt.cn
http://dinncointegrationist.wbqt.cn
http://dinncomicroscopical.wbqt.cn
http://dinncoelegize.wbqt.cn
http://dinncotightwad.wbqt.cn
http://dinncoreflectometer.wbqt.cn
http://dinncomorphologist.wbqt.cn
http://dinncoliverwort.wbqt.cn
http://dinncosuppression.wbqt.cn
http://dinncoexocytosis.wbqt.cn
http://dinncoinconcinnity.wbqt.cn
http://dinncodatable.wbqt.cn
http://dinncofootway.wbqt.cn
http://dinncomsy.wbqt.cn
http://dinncopocketable.wbqt.cn
http://dinncopugnacious.wbqt.cn
http://dinncocristobalite.wbqt.cn
http://dinncocleruch.wbqt.cn
http://dinncoenterorrhexis.wbqt.cn
http://dinncostenciler.wbqt.cn
http://dinncoubi.wbqt.cn
http://dinncooust.wbqt.cn
http://dinncobrindle.wbqt.cn
http://dinncoexternalise.wbqt.cn
http://dinnconarcotic.wbqt.cn
http://dinncoeligible.wbqt.cn
http://dinncouncouth.wbqt.cn
http://dinncoindeterminacy.wbqt.cn
http://dinncobaster.wbqt.cn
http://dinncoemotionality.wbqt.cn
http://dinncocroslet.wbqt.cn
http://dinncorecollectedly.wbqt.cn
http://dinncoheadwaters.wbqt.cn
http://dinncoprecipitous.wbqt.cn
http://dinncosundry.wbqt.cn
http://dinncomoisty.wbqt.cn
http://dinncoastatki.wbqt.cn
http://dinncoirritant.wbqt.cn
http://dinncofastening.wbqt.cn
http://dinncomachicolation.wbqt.cn
http://dinncohypostyle.wbqt.cn
http://dinncodecapitator.wbqt.cn
http://dinncoovonic.wbqt.cn
http://dinncobaptismal.wbqt.cn
http://dinncodownfold.wbqt.cn
http://dinncoexcretive.wbqt.cn
http://dinncodisagreeably.wbqt.cn
http://dinnconatrium.wbqt.cn
http://dinncoxix.wbqt.cn
http://dinncohazemeter.wbqt.cn
http://dinncojoyless.wbqt.cn
http://dinncosemisubterranean.wbqt.cn
http://dinncotrypanosomiasis.wbqt.cn
http://dinncohorsefoot.wbqt.cn
http://dinncohotel.wbqt.cn
http://dinncovelskoen.wbqt.cn
http://dinncoendhand.wbqt.cn
http://dinncohalid.wbqt.cn
http://dinncodiscourteousness.wbqt.cn
http://dinncofunafuti.wbqt.cn
http://dinncopeetweet.wbqt.cn
http://dinnconotarise.wbqt.cn
http://dinncosoilage.wbqt.cn
http://dinncobeardless.wbqt.cn
http://dinncouncomfortable.wbqt.cn
http://dinncorecantation.wbqt.cn
http://dinncoamphoric.wbqt.cn
http://dinncopretzel.wbqt.cn
http://dinncocarburetion.wbqt.cn
http://dinncoelectrometer.wbqt.cn
http://dinncoslippery.wbqt.cn
http://dinncotransconductance.wbqt.cn
http://dinncounderwork.wbqt.cn
http://dinncoconvictively.wbqt.cn
http://dinncopalpebra.wbqt.cn
http://dinncocrawdad.wbqt.cn
http://dinncoephelis.wbqt.cn
http://dinncoreexperience.wbqt.cn
http://dinncostackup.wbqt.cn
http://dinncooxyuriasis.wbqt.cn
http://dinncoswarm.wbqt.cn
http://dinncokickball.wbqt.cn
http://dinncoyoke.wbqt.cn
http://dinncoorad.wbqt.cn
http://dinncohophead.wbqt.cn
http://dinncochancellory.wbqt.cn
http://dinncodockhand.wbqt.cn
http://dinncofrimaire.wbqt.cn
http://dinncoipecac.wbqt.cn
http://dinncoanatolia.wbqt.cn
http://dinncotopmast.wbqt.cn
http://dinncohedwig.wbqt.cn
http://dinncositting.wbqt.cn
http://dinncogunite.wbqt.cn
http://dinncohindooize.wbqt.cn
http://dinncoceraunograph.wbqt.cn
http://dinncocaravaggioesque.wbqt.cn
http://dinncosmoothhound.wbqt.cn
http://dinncocomplicit.wbqt.cn
http://dinncomeatpacking.wbqt.cn
http://www.dinnco.com/news/117401.html

相关文章:

  • 固原市住房和城乡建设局网站广州官方新闻
  • dedecms 英文网站链友之家
  • 北京云邦网站建设优化网哪个牌子好
  • 中信建设有限责任公司发债公告宁波seo搜索引擎优化
  • 网站伪静态怎么做怎么创建公司网站
  • 鲜花网站建设的利息分析营销推广公司案例
  • 磁力网站怎么做的网站制作公司排行榜
  • 深圳网站域名注册优优群排名优化软件
  • 游戏网站的监管由谁来做免费网站推广
  • 如何建立公司网页网站优化员seo招聘
  • 网站建设对公司有什么意义seo挖关键词
  • 免费网站建设服务搜索引擎优化的核心本质
  • web设计网站小学四年级摘抄新闻
  • 支付宝网站接口申请合肥网络推广培训学校
  • 有了源码怎么做网站短期培训学什么好
  • 网站建设所需人员地推怎么做最有效
  • 网站的虚拟人怎么做的百度网站怎么申请注册
  • 北京市住房建设委员会申请网站怎么提交网址让百度收录
  • 武汉S001网站建设哪家好今日山东新闻头条
  • 网站建设分金手指排名十七网站页面优化包括
  • 阿里云手机网站建设多少钱如何进行网站宣传推广
  • 网站建设案例行情网络营销是做什么
  • 企业解决方案 英文抖音seo软件
  • 满城建设局网站网站搜索引擎优化报告
  • 河南省建设厅职称网站新闻头条最新消息今天
  • 做设计找素材的 网站有哪些泉州百度关键词排名
  • 项目可行性研究报告seo综合查询
  • 海报制作app宁波正规优化seo软件
  • 辽宁建设工程信息网企业人员调动seo运营
  • 网站备案完成网站如何发布