openharmony 鸿蒙 native-apidiff-v3.1-beta

2023-02-03 浏览 (709)

Native API Differences

This document describes the changes of APIs in OpenHarmony 3.1 Beta when compared with OpenHarmony 3.0 LTS.

Standard System API Changes

ModuleAPIChange TypeChange Description
bundlenapi_value ClearBundleCache(napi_env env, napi_callback_info info)AddedAdded the API for clearing the cache of an application.
bundlenapi_value SetApplicationEnabled(napi_env env, napi_callback_info info)AddedAdded the API for setting whether to enable an application.
bundlenapi_value SetAbilityEnabled(napi_env env, napi_callback_info info)AddedAdded the API for setting whether to enable an ability.
innerbundlemanagernapi_value JSGetLauncherAbilityInfos(napi_env env, napi_callback_info info)AddedAdded the API for obtaining the launcher ability information by bundleName.
innerbundlemanagernapi_value JSLauncherServiceOn(napi_env env, napi_callback_info info)AddedAdded the API for subscribing to bundle status changes.
innerbundlemanagernapi_value JSLauncherServiceOff(napi_env env, napi_callback_info info)AddedAdded the API for unsubscribing from bundle status changes.
innerbundlemanagernapi_value JSGetAllLauncherAbilityInfos(napi_env env, napi_callback_info info)AddedAdded the API for obtaining the application abilities on all launchers by userId.
innerbundlemanagernapi_value JSGetShortcutInfos(napi_env env, napi_callback_info info)AddedAdded the API for obtaining the application shortcut information by bundleName.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Changelog

harmony 鸿蒙JS API Differences

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/135e9a4ca7d84aa698c61817d84aba09