Writy.
  • Home
  • HarmonyOS
    HarmonyOS 2.0.1.191 Huawei P50 Pocket

    Huawei P50 Pocket grabbing HarmonyOS 2.0.1.191 update

    Huawei Mate X2 (1)

    Huawei Mate X2 getting system optimization update

    Huawei Mate Xs

    Huawei Mate Xs and Mate X getting June 2022 security update

    Honor Note 10

    February 2022 security update rolling out for Honor Note 10

    Huawei Mate 30 Series

    Huawei Mate 30 Series gets HarmonyOS 2.0.0.263 update [2nd June 2022 Update]

    Honor Play 4 Pro June 2022 patch Update

    Honor Play 4 Pro and Honor 30S grabbing June 2022 security update

    Honor V30 Series June 2022 security update

    Honor V30 Series and Honor Play 4 Pro getting June 2022 security update

    Huawei Nova 7 SE 5G

    Huawei Nova 7 5G and Nova 7 Pro 5G June 2022 security update

    Huawei Enjoy 20 SE HarmonyOS update

    Huawei Enjoy 20 SE getting June 2022 security patch

    Trending Tags

    • HarmonyOS 2
    • HarmonyOS 3
    • HarmonyOS History
  • EMUI 12
    Huawei EMUI 12 India and Asia Plan 2022

    Stable EMUI 12 update plan for India and Asia Pacific Market [Updated: June 24, 2022]

    Stable EMUI 12 update plan for Japan and Latin America

    Stable EMUI 12 update plan for Japan and Latin America

    Huawei EMUI 12 Russia and Middle East Plan Update Plan 2022

    Stable EMUI 12 update plan for Russia and Middle East [Updated: June 24, 2022]

    Huawei EMUI 12 Europe Plan

    Stable EMUI 12 update plan for Europe [Updated: June 23, 2022]

    Updated Huawei EMUI 12 plan for Global users 2022

    Updated EMUI 12 plan for Global users [June 23, 2022]

    Huawei Nova 8i

    May 2022 security update is now out for Nova 8i

    Huawei P40 Lite June 2022 security update

    Huawei P40 Lite getting June 2022 security update

    Huawei Nova 5T Update

    Huawei Nova 5T May 2022 security update is now circulating

    Huawei Mate 20 Pro May 2022 security update

    Huawei Mate 20 Pro grabbing May 2022 security update

    Trending Tags

    • EMUI 12
    • EMUI 11
  • EMUI 11
    • EMUI 10.1
    • Magic UI 3.1
    • EMUI History
  • News
    Check these top Social Apps to connect with others

    Check these top Social Apps to connect with others

    Huawei Mate 50 and 50 Pro phone case leaked

    Huawei Mate 50 and 50 Pro phone case leaked

    Huawei logo news

    Huawei Imaging XMAGE officially released

    Purchase Huawei FreeBuds Pro 2 and get Huawei Band 6 for free

    Purchase Huawei FreeBuds Pro 2 and get Huawei Band 6 for free

    Huawei Mate 50 Pro tempered film

    Huawei Mate 50 Pro tempered film leaked

    Huawei Nova 10 and Nova 10 Pro

    Huawei Nova 10 and Nova 10 Pro series listed on JD.com

    Huawei AppGallery (1)

    Huawei AppGallery: New cleaning and Wi-Fi apps will no longer be listed

    FreeBuds Pro 2 first software update is now available

    FreeBuds Pro 2 first software update is now available

    Huawei Whole House Smart 2.0 official announcement (1)

    July 4, 2022: Huawei Whole House Smart 2.0 official announcement

    Trending Tags

    • Mate 50
    • P40
    • Honor News
  • Huawei Apps
  • Tips And Tricks
  • Send A Tip
No Result
View All Result
HU
  • Home
  • HarmonyOS
    HarmonyOS 2.0.1.191 Huawei P50 Pocket

    Huawei P50 Pocket grabbing HarmonyOS 2.0.1.191 update

    Huawei Mate X2 (1)

    Huawei Mate X2 getting system optimization update

    Huawei Mate Xs

    Huawei Mate Xs and Mate X getting June 2022 security update

    Honor Note 10

    February 2022 security update rolling out for Honor Note 10

    Huawei Mate 30 Series

    Huawei Mate 30 Series gets HarmonyOS 2.0.0.263 update [2nd June 2022 Update]

    Honor Play 4 Pro June 2022 patch Update

    Honor Play 4 Pro and Honor 30S grabbing June 2022 security update

    Honor V30 Series June 2022 security update

    Honor V30 Series and Honor Play 4 Pro getting June 2022 security update

    Huawei Nova 7 SE 5G

    Huawei Nova 7 5G and Nova 7 Pro 5G June 2022 security update

    Huawei Enjoy 20 SE HarmonyOS update

    Huawei Enjoy 20 SE getting June 2022 security patch

    Trending Tags

    • HarmonyOS 2
    • HarmonyOS 3
    • HarmonyOS History
  • EMUI 12
    Huawei EMUI 12 India and Asia Plan 2022

    Stable EMUI 12 update plan for India and Asia Pacific Market [Updated: June 24, 2022]

    Stable EMUI 12 update plan for Japan and Latin America

    Stable EMUI 12 update plan for Japan and Latin America

    Huawei EMUI 12 Russia and Middle East Plan Update Plan 2022

    Stable EMUI 12 update plan for Russia and Middle East [Updated: June 24, 2022]

    Huawei EMUI 12 Europe Plan

    Stable EMUI 12 update plan for Europe [Updated: June 23, 2022]

    Updated Huawei EMUI 12 plan for Global users 2022

    Updated EMUI 12 plan for Global users [June 23, 2022]

    Huawei Nova 8i

    May 2022 security update is now out for Nova 8i

    Huawei P40 Lite June 2022 security update

    Huawei P40 Lite getting June 2022 security update

    Huawei Nova 5T Update

    Huawei Nova 5T May 2022 security update is now circulating

    Huawei Mate 20 Pro May 2022 security update

    Huawei Mate 20 Pro grabbing May 2022 security update

    Trending Tags

    • EMUI 12
    • EMUI 11
  • EMUI 11
    • EMUI 10.1
    • Magic UI 3.1
    • EMUI History
  • News
    Check these top Social Apps to connect with others

    Check these top Social Apps to connect with others

    Huawei Mate 50 and 50 Pro phone case leaked

    Huawei Mate 50 and 50 Pro phone case leaked

    Huawei logo news

    Huawei Imaging XMAGE officially released

    Purchase Huawei FreeBuds Pro 2 and get Huawei Band 6 for free

    Purchase Huawei FreeBuds Pro 2 and get Huawei Band 6 for free

    Huawei Mate 50 Pro tempered film

    Huawei Mate 50 Pro tempered film leaked

    Huawei Nova 10 and Nova 10 Pro

    Huawei Nova 10 and Nova 10 Pro series listed on JD.com

    Huawei AppGallery (1)

    Huawei AppGallery: New cleaning and Wi-Fi apps will no longer be listed

    FreeBuds Pro 2 first software update is now available

    FreeBuds Pro 2 first software update is now available

    Huawei Whole House Smart 2.0 official announcement (1)

    July 4, 2022: Huawei Whole House Smart 2.0 official announcement

    Trending Tags

    • Mate 50
    • P40
    • Honor News
  • Huawei Apps
  • Tips And Tricks
  • Send A Tip
No Result
View All Result
HU
No Result
View All Result

Huawei HarmonyOS API: Key SDK changes, Java API, JS API, configuration files

by Amit
June 29, 2021
in Harmony OS 2, Hongmeng
0
HarmonyOS SDK 2.2 Beta 1

HarmonyOS SDK 2.2 Beta 1

591
SHARES
3.3k
VIEWS
Share on FacebookShare on Twitter

Huawei officially launched the Harmony OS on June 2, 2021, its in-house operating system, a replacement for Android. The company announced a new watch – Watch 3 Series, a new tablet – MatePad Pro 10.8 & 12.6, and a new phone powered by HarmonyOS. The company has also shared a list of 100 different Huawei phone models to upgrade with Harmony OS over the next year.

Huawei has two different operating systems that it calls “HarmonyOS.” First is the IoT and smartwatch version of HarmonyOS, which is based on Huawei’s LiteOS and is open source. The second version of Harmony OS is for phones and tablets and is a fork of Android and uses the Linux kernel.

You might also like

HarmonyOS 2.0.1.191 Huawei P50 Pocket

Huawei P50 Pocket grabbing HarmonyOS 2.0.1.191 update

July 2, 2022
Huawei Mate X2 (1)

Huawei Mate X2 getting system optimization update

July 2, 2022

The HarmonyOS API has been continuously expanded and improved, with more available functions and more powerful. But every time the version is updated, developers have to find out which APIs are added in the new version by themselves, which actually takes a lot of time.

Huawei responded that it brought the first API difference report this time. This report is based on API 6. It will provide you with version introduction, key SDK change instructions, etc., including Java API, JS API and configuration files.

Huawei HarmonyOS Phone

Version introduction:

HarmonyOS SDK 2.2 Beta 1 is released this time. Compared with the previous version, please refer to [Java API Difference Report (API 6 -> API 5)] and [JS API Difference Report (API 6 -> API 5)] for API changes.

● Java API difference report (API 6 -> API 5)

https://developer.harmonyos.com/cn/docs/documentation/doc-releases/apidiff-java-api-6-0000001123842928

● JS API difference report (API 6 -> API 5)

https://developer.harmonyos.com/cn/docs/documentation/doc-releases/apidiff-js-api-6-phone-component-0000001170697425

The key changes to the SDK are explained as follows:

❖ Java API part:

◆ Added the StartAbility interface that supports callbacks, which is mainly used in installation-free scenarios to facilitate developers to obtain the callback results of StartAbility.

◆ Added the function of providing background agent timing reminder and related interfaces, which can be used for system reminders of countdown, calendar, and alarm after the application is frozen or exited.

◆ Added the response interface when the provider of the service card receives the notification of the query card status initiated by the card service provider.

◆ Added an interface that provides file sharing capabilities in the application sandbox for sharing files in the sandbox.

❖ JS API part:

◆ div component function changes: the layout of the root node div no longer fills the full screen, but is set according to the size of the child nodes. For details, please refer to [div component function changes].

● div component function changes

https://developer.harmonyos.com/cn/docs/documentation/doc-releases/changelog-api-6-0000001170522589#section292715611144

◆ General style margin function change: When the component has set the percentage width and height and margin at the same time, there will be different layouts in API 5 and API 6. For details, please refer to [General Style Margin Function Changes].

● General style margin function changes

https://developer.harmonyos.com/cn/docs/documentation/doc-releases/changelog-api-6-0000001170522589#section168737911175

◆ Added APIs that provide several subsystems such as meta-capabilities, graphics, files, etc. For details, please refer to the JS API Difference Report (API 6 -> API 5).

❖ Configuration file section

In the configuration file config.json, the configuration method of the version.name and version.code fields have been modified. It is recommended that the application use a four-segment version number and the strong association relationship between the version.code field and the version.name field has been canceled.

Huawei HarmonyOS API SDK

(Via)

Join_Huawei_Update_Telegram_Channel

Tags: Harmony OSHarmonyOSHarmonyOS SDKHarmonyOS SDK 2.2 Beta 1HongmengHongmengOSHuawei
Share236Tweet148ShareShareSend
Amit

Amit

I write about Huawei Latest News, EMUI Updates & more. I am also a fitness freak. For any information, tip or help send me an email at huaweiupdatenews@gmail.com

Recommended

Honor X10 getting June 2022 security update (1)

Honor X10 getting June 2022 security update

June 28, 2022
Huawei Mate 50 Pro tempered film

Huawei Mate 50 Pro tempered film leaked

June 30, 2022

Popular Story

  • Huawei HarmonyOS OS 3.0 July 2022 Update

    Huawei HarmonyOS OS 3.0 official version launching in July 2022

    665 shares
    Share 266 Tweet 166
  • Download Huawei HMS Core 6.6.0.301 APK

    1306 shares
    Share 522 Tweet 327
  • Updated EMUI 12 plan for Global users [June 23, 2022]

    2748 shares
    Share 1099 Tweet 687
  • Download Huawei Health 12.1 version 12.1.6.300 APK

    2015 shares
    Share 806 Tweet 504
  • 12.1.1.321 Huawei Browser App version rolling out [Download Link]

    867 shares
    Share 347 Tweet 217

At HuaweiUpdate.com, you/users will get complete information of Huawei news, Huawei's new product launch, EMUI update news, and How-to guides.

  • About Us
  • Privacy Policy
  • Sitemap
  • Send A Tip

Copyright © 2022 HU

No Result
View All Result
  • Home
  • HarmonyOS
    • HarmonyOS History
  • EMUI 12
  • EMUI 11
    • EMUI 10.1
    • Magic UI 3.1
    • EMUI History
  • News
    • Honor News
  • Huawei Apps
  • Tips And Tricks
  • Send A Tip

Copyright © 2022 HU